@csmodding/gameface-devtools-mcp 0.1.0 → 0.3.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/README.md +25 -19
- package/dist/server.mjs +1184 -601
- package/package.json +4 -4
package/dist/server.mjs
CHANGED
|
@@ -44,7 +44,7 @@ var __export = (target, all) => {
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
//
|
|
47
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
48
48
|
var require_code = __commonJS((exports) => {
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
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 = undefined;
|
|
@@ -198,7 +198,7 @@ var require_code = __commonJS((exports) => {
|
|
|
198
198
|
exports.regexpCode = regexpCode;
|
|
199
199
|
});
|
|
200
200
|
|
|
201
|
-
//
|
|
201
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
202
202
|
var require_scope = __commonJS((exports) => {
|
|
203
203
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
204
204
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
@@ -344,7 +344,7 @@ var require_scope = __commonJS((exports) => {
|
|
|
344
344
|
exports.ValueScope = ValueScope;
|
|
345
345
|
});
|
|
346
346
|
|
|
347
|
-
//
|
|
347
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
348
348
|
var require_codegen = __commonJS((exports) => {
|
|
349
349
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
350
350
|
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._ = undefined;
|
|
@@ -1054,7 +1054,7 @@ var require_codegen = __commonJS((exports) => {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
});
|
|
1056
1056
|
|
|
1057
|
-
//
|
|
1057
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
1058
1058
|
var require_util = __commonJS((exports) => {
|
|
1059
1059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1060
1060
|
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 = undefined;
|
|
@@ -1218,7 +1218,7 @@ var require_util = __commonJS((exports) => {
|
|
|
1218
1218
|
exports.checkStrictMode = checkStrictMode;
|
|
1219
1219
|
});
|
|
1220
1220
|
|
|
1221
|
-
//
|
|
1221
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
1222
1222
|
var require_names = __commonJS((exports) => {
|
|
1223
1223
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1224
1224
|
var codegen_1 = require_codegen();
|
|
@@ -1243,7 +1243,7 @@ var require_names = __commonJS((exports) => {
|
|
|
1243
1243
|
exports.default = names;
|
|
1244
1244
|
});
|
|
1245
1245
|
|
|
1246
|
-
//
|
|
1246
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
1247
1247
|
var require_errors = __commonJS((exports) => {
|
|
1248
1248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1249
1249
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
@@ -1361,7 +1361,7 @@ var require_errors = __commonJS((exports) => {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
});
|
|
1363
1363
|
|
|
1364
|
-
//
|
|
1364
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1365
1365
|
var require_boolSchema = __commonJS((exports) => {
|
|
1366
1366
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1367
1367
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
@@ -1409,7 +1409,7 @@ var require_boolSchema = __commonJS((exports) => {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
});
|
|
1411
1411
|
|
|
1412
|
-
//
|
|
1412
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
1413
1413
|
var require_rules = __commonJS((exports) => {
|
|
1414
1414
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1415
1415
|
exports.getRules = exports.isJSONType = undefined;
|
|
@@ -1437,7 +1437,7 @@ var require_rules = __commonJS((exports) => {
|
|
|
1437
1437
|
exports.getRules = getRules;
|
|
1438
1438
|
});
|
|
1439
1439
|
|
|
1440
|
-
//
|
|
1440
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1441
1441
|
var require_applicability = __commonJS((exports) => {
|
|
1442
1442
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1443
1443
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
@@ -1457,7 +1457,7 @@ var require_applicability = __commonJS((exports) => {
|
|
|
1457
1457
|
exports.shouldUseRule = shouldUseRule;
|
|
1458
1458
|
});
|
|
1459
1459
|
|
|
1460
|
-
//
|
|
1460
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1461
1461
|
var require_dataType = __commonJS((exports) => {
|
|
1462
1462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1463
1463
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
@@ -1638,7 +1638,7 @@ var require_dataType = __commonJS((exports) => {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
});
|
|
1640
1640
|
|
|
1641
|
-
//
|
|
1641
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1642
1642
|
var require_defaults = __commonJS((exports) => {
|
|
1643
1643
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1644
1644
|
exports.assignDefaults = undefined;
|
|
@@ -1672,7 +1672,7 @@ var require_defaults = __commonJS((exports) => {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
});
|
|
1674
1674
|
|
|
1675
|
-
//
|
|
1675
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1676
1676
|
var require_code2 = __commonJS((exports) => {
|
|
1677
1677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1678
1678
|
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 = undefined;
|
|
@@ -1801,7 +1801,7 @@ var require_code2 = __commonJS((exports) => {
|
|
|
1801
1801
|
exports.validateUnion = validateUnion;
|
|
1802
1802
|
});
|
|
1803
1803
|
|
|
1804
|
-
//
|
|
1804
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1805
1805
|
var require_keyword = __commonJS((exports) => {
|
|
1806
1806
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1807
1807
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
@@ -1916,7 +1916,7 @@ var require_keyword = __commonJS((exports) => {
|
|
|
1916
1916
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
1917
1917
|
});
|
|
1918
1918
|
|
|
1919
|
-
//
|
|
1919
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1920
1920
|
var require_subschema = __commonJS((exports) => {
|
|
1921
1921
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1922
1922
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
@@ -1996,7 +1996,7 @@ var require_subschema = __commonJS((exports) => {
|
|
|
1996
1996
|
exports.extendSubschemaMode = extendSubschemaMode;
|
|
1997
1997
|
});
|
|
1998
1998
|
|
|
1999
|
-
//
|
|
1999
|
+
// ../../../node_modules/.bun/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
2000
2000
|
var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
2001
2001
|
module.exports = function equal(a, b) {
|
|
2002
2002
|
if (a === b)
|
|
@@ -2038,7 +2038,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
|
2038
2038
|
};
|
|
2039
2039
|
});
|
|
2040
2040
|
|
|
2041
|
-
//
|
|
2041
|
+
// ../../../node_modules/.bun/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
2042
2042
|
var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
2043
2043
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
2044
2044
|
if (typeof opts == "function") {
|
|
@@ -2121,7 +2121,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
});
|
|
2123
2123
|
|
|
2124
|
-
//
|
|
2124
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
2125
2125
|
var require_resolve = __commonJS((exports) => {
|
|
2126
2126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2127
2127
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
@@ -2274,7 +2274,7 @@ var require_resolve = __commonJS((exports) => {
|
|
|
2274
2274
|
exports.getSchemaRefs = getSchemaRefs;
|
|
2275
2275
|
});
|
|
2276
2276
|
|
|
2277
|
-
//
|
|
2277
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2278
2278
|
var require_validate = __commonJS((exports) => {
|
|
2279
2279
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2280
2280
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
@@ -2779,7 +2779,7 @@ var require_validate = __commonJS((exports) => {
|
|
|
2779
2779
|
exports.getData = getData;
|
|
2780
2780
|
});
|
|
2781
2781
|
|
|
2782
|
-
//
|
|
2782
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2783
2783
|
var require_validation_error = __commonJS((exports) => {
|
|
2784
2784
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2785
2785
|
|
|
@@ -2793,7 +2793,7 @@ var require_validation_error = __commonJS((exports) => {
|
|
|
2793
2793
|
exports.default = ValidationError;
|
|
2794
2794
|
});
|
|
2795
2795
|
|
|
2796
|
-
//
|
|
2796
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2797
2797
|
var require_ref_error = __commonJS((exports) => {
|
|
2798
2798
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2799
2799
|
var resolve_1 = require_resolve();
|
|
@@ -2808,7 +2808,7 @@ var require_ref_error = __commonJS((exports) => {
|
|
|
2808
2808
|
exports.default = MissingRefError;
|
|
2809
2809
|
});
|
|
2810
2810
|
|
|
2811
|
-
//
|
|
2811
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
2812
2812
|
var require_compile = __commonJS((exports) => {
|
|
2813
2813
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2814
2814
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
@@ -3029,7 +3029,7 @@ var require_compile = __commonJS((exports) => {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
});
|
|
3031
3031
|
|
|
3032
|
-
//
|
|
3032
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
3033
3033
|
var require_data = __commonJS((exports, module) => {
|
|
3034
3034
|
module.exports = {
|
|
3035
3035
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -3046,7 +3046,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
3046
3046
|
};
|
|
3047
3047
|
});
|
|
3048
3048
|
|
|
3049
|
-
//
|
|
3049
|
+
// ../../../node_modules/.bun/fast-uri@3.1.3/node_modules/fast-uri/lib/utils.js
|
|
3050
3050
|
var require_utils = __commonJS((exports, module) => {
|
|
3051
3051
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3052
3052
|
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);
|
|
@@ -3357,7 +3357,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
3357
3357
|
};
|
|
3358
3358
|
});
|
|
3359
3359
|
|
|
3360
|
-
//
|
|
3360
|
+
// ../../../node_modules/.bun/fast-uri@3.1.3/node_modules/fast-uri/lib/schemes.js
|
|
3361
3361
|
var require_schemes = __commonJS((exports, module) => {
|
|
3362
3362
|
var { isUUID } = require_utils();
|
|
3363
3363
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3531,7 +3531,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
3531
3531
|
};
|
|
3532
3532
|
});
|
|
3533
3533
|
|
|
3534
|
-
//
|
|
3534
|
+
// ../../../node_modules/.bun/fast-uri@3.1.3/node_modules/fast-uri/index.js
|
|
3535
3535
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
3536
3536
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3537
3537
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3813,7 +3813,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
3813
3813
|
module.exports.fastUri = fastUri;
|
|
3814
3814
|
});
|
|
3815
3815
|
|
|
3816
|
-
//
|
|
3816
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
3817
3817
|
var require_uri = __commonJS((exports) => {
|
|
3818
3818
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3819
3819
|
var uri = require_fast_uri();
|
|
@@ -3821,7 +3821,7 @@ var require_uri = __commonJS((exports) => {
|
|
|
3821
3821
|
exports.default = uri;
|
|
3822
3822
|
});
|
|
3823
3823
|
|
|
3824
|
-
//
|
|
3824
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
3825
3825
|
var require_core = __commonJS((exports) => {
|
|
3826
3826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3827
3827
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
@@ -4414,7 +4414,7 @@ var require_core = __commonJS((exports) => {
|
|
|
4414
4414
|
}
|
|
4415
4415
|
});
|
|
4416
4416
|
|
|
4417
|
-
//
|
|
4417
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4418
4418
|
var require_id = __commonJS((exports) => {
|
|
4419
4419
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4420
4420
|
var def = {
|
|
@@ -4426,7 +4426,7 @@ var require_id = __commonJS((exports) => {
|
|
|
4426
4426
|
exports.default = def;
|
|
4427
4427
|
});
|
|
4428
4428
|
|
|
4429
|
-
//
|
|
4429
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4430
4430
|
var require_ref = __commonJS((exports) => {
|
|
4431
4431
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4432
4432
|
exports.callRef = exports.getValidate = undefined;
|
|
@@ -4545,7 +4545,7 @@ var require_ref = __commonJS((exports) => {
|
|
|
4545
4545
|
exports.default = def;
|
|
4546
4546
|
});
|
|
4547
4547
|
|
|
4548
|
-
//
|
|
4548
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4549
4549
|
var require_core2 = __commonJS((exports) => {
|
|
4550
4550
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4551
4551
|
var id_1 = require_id();
|
|
@@ -4563,7 +4563,7 @@ var require_core2 = __commonJS((exports) => {
|
|
|
4563
4563
|
exports.default = core2;
|
|
4564
4564
|
});
|
|
4565
4565
|
|
|
4566
|
-
//
|
|
4566
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4567
4567
|
var require_limitNumber = __commonJS((exports) => {
|
|
4568
4568
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4569
4569
|
var codegen_1 = require_codegen();
|
|
@@ -4592,7 +4592,7 @@ var require_limitNumber = __commonJS((exports) => {
|
|
|
4592
4592
|
exports.default = def;
|
|
4593
4593
|
});
|
|
4594
4594
|
|
|
4595
|
-
//
|
|
4595
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4596
4596
|
var require_multipleOf = __commonJS((exports) => {
|
|
4597
4597
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4598
4598
|
var codegen_1 = require_codegen();
|
|
@@ -4617,7 +4617,7 @@ var require_multipleOf = __commonJS((exports) => {
|
|
|
4617
4617
|
exports.default = def;
|
|
4618
4618
|
});
|
|
4619
4619
|
|
|
4620
|
-
//
|
|
4620
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4621
4621
|
var require_ucs2length = __commonJS((exports) => {
|
|
4622
4622
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4623
4623
|
function ucs2length(str) {
|
|
@@ -4640,7 +4640,7 @@ var require_ucs2length = __commonJS((exports) => {
|
|
|
4640
4640
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4641
4641
|
});
|
|
4642
4642
|
|
|
4643
|
-
//
|
|
4643
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4644
4644
|
var require_limitLength = __commonJS((exports) => {
|
|
4645
4645
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4646
4646
|
var codegen_1 = require_codegen();
|
|
@@ -4669,7 +4669,7 @@ var require_limitLength = __commonJS((exports) => {
|
|
|
4669
4669
|
exports.default = def;
|
|
4670
4670
|
});
|
|
4671
4671
|
|
|
4672
|
-
//
|
|
4672
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4673
4673
|
var require_pattern = __commonJS((exports) => {
|
|
4674
4674
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4675
4675
|
var code_1 = require_code2();
|
|
@@ -4703,7 +4703,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
4703
4703
|
exports.default = def;
|
|
4704
4704
|
});
|
|
4705
4705
|
|
|
4706
|
-
//
|
|
4706
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4707
4707
|
var require_limitProperties = __commonJS((exports) => {
|
|
4708
4708
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4709
4709
|
var codegen_1 = require_codegen();
|
|
@@ -4729,7 +4729,7 @@ var require_limitProperties = __commonJS((exports) => {
|
|
|
4729
4729
|
exports.default = def;
|
|
4730
4730
|
});
|
|
4731
4731
|
|
|
4732
|
-
//
|
|
4732
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4733
4733
|
var require_required = __commonJS((exports) => {
|
|
4734
4734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4735
4735
|
var code_1 = require_code2();
|
|
@@ -4808,7 +4808,7 @@ var require_required = __commonJS((exports) => {
|
|
|
4808
4808
|
exports.default = def;
|
|
4809
4809
|
});
|
|
4810
4810
|
|
|
4811
|
-
//
|
|
4811
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4812
4812
|
var require_limitItems = __commonJS((exports) => {
|
|
4813
4813
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4814
4814
|
var codegen_1 = require_codegen();
|
|
@@ -4834,7 +4834,7 @@ var require_limitItems = __commonJS((exports) => {
|
|
|
4834
4834
|
exports.default = def;
|
|
4835
4835
|
});
|
|
4836
4836
|
|
|
4837
|
-
//
|
|
4837
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
4838
4838
|
var require_equal = __commonJS((exports) => {
|
|
4839
4839
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4840
4840
|
var equal = require_fast_deep_equal();
|
|
@@ -4842,7 +4842,7 @@ var require_equal = __commonJS((exports) => {
|
|
|
4842
4842
|
exports.default = equal;
|
|
4843
4843
|
});
|
|
4844
4844
|
|
|
4845
|
-
//
|
|
4845
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4846
4846
|
var require_uniqueItems = __commonJS((exports) => {
|
|
4847
4847
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4848
4848
|
var dataType_1 = require_dataType();
|
|
@@ -4906,7 +4906,7 @@ var require_uniqueItems = __commonJS((exports) => {
|
|
|
4906
4906
|
exports.default = def;
|
|
4907
4907
|
});
|
|
4908
4908
|
|
|
4909
|
-
//
|
|
4909
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4910
4910
|
var require_const = __commonJS((exports) => {
|
|
4911
4911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4912
4912
|
var codegen_1 = require_codegen();
|
|
@@ -4932,7 +4932,7 @@ var require_const = __commonJS((exports) => {
|
|
|
4932
4932
|
exports.default = def;
|
|
4933
4933
|
});
|
|
4934
4934
|
|
|
4935
|
-
//
|
|
4935
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4936
4936
|
var require_enum = __commonJS((exports) => {
|
|
4937
4937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4938
4938
|
var codegen_1 = require_codegen();
|
|
@@ -4978,7 +4978,7 @@ var require_enum = __commonJS((exports) => {
|
|
|
4978
4978
|
exports.default = def;
|
|
4979
4979
|
});
|
|
4980
4980
|
|
|
4981
|
-
//
|
|
4981
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
4982
4982
|
var require_validation = __commonJS((exports) => {
|
|
4983
4983
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4984
4984
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5008,7 +5008,7 @@ var require_validation = __commonJS((exports) => {
|
|
|
5008
5008
|
exports.default = validation;
|
|
5009
5009
|
});
|
|
5010
5010
|
|
|
5011
|
-
//
|
|
5011
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5012
5012
|
var require_additionalItems = __commonJS((exports) => {
|
|
5013
5013
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5014
5014
|
exports.validateAdditionalItems = undefined;
|
|
@@ -5058,7 +5058,7 @@ var require_additionalItems = __commonJS((exports) => {
|
|
|
5058
5058
|
exports.default = def;
|
|
5059
5059
|
});
|
|
5060
5060
|
|
|
5061
|
-
//
|
|
5061
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5062
5062
|
var require_items = __commonJS((exports) => {
|
|
5063
5063
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5064
5064
|
exports.validateTuple = undefined;
|
|
@@ -5112,7 +5112,7 @@ var require_items = __commonJS((exports) => {
|
|
|
5112
5112
|
exports.default = def;
|
|
5113
5113
|
});
|
|
5114
5114
|
|
|
5115
|
-
//
|
|
5115
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5116
5116
|
var require_prefixItems = __commonJS((exports) => {
|
|
5117
5117
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5118
5118
|
var items_1 = require_items();
|
|
@@ -5126,7 +5126,7 @@ var require_prefixItems = __commonJS((exports) => {
|
|
|
5126
5126
|
exports.default = def;
|
|
5127
5127
|
});
|
|
5128
5128
|
|
|
5129
|
-
//
|
|
5129
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5130
5130
|
var require_items2020 = __commonJS((exports) => {
|
|
5131
5131
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5132
5132
|
var codegen_1 = require_codegen();
|
|
@@ -5158,7 +5158,7 @@ var require_items2020 = __commonJS((exports) => {
|
|
|
5158
5158
|
exports.default = def;
|
|
5159
5159
|
});
|
|
5160
5160
|
|
|
5161
|
-
//
|
|
5161
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5162
5162
|
var require_contains = __commonJS((exports) => {
|
|
5163
5163
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5164
5164
|
var codegen_1 = require_codegen();
|
|
@@ -5249,7 +5249,7 @@ var require_contains = __commonJS((exports) => {
|
|
|
5249
5249
|
exports.default = def;
|
|
5250
5250
|
});
|
|
5251
5251
|
|
|
5252
|
-
//
|
|
5252
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5253
5253
|
var require_dependencies = __commonJS((exports) => {
|
|
5254
5254
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5255
5255
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
@@ -5334,7 +5334,7 @@ var require_dependencies = __commonJS((exports) => {
|
|
|
5334
5334
|
exports.default = def;
|
|
5335
5335
|
});
|
|
5336
5336
|
|
|
5337
|
-
//
|
|
5337
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5338
5338
|
var require_propertyNames = __commonJS((exports) => {
|
|
5339
5339
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5340
5340
|
var codegen_1 = require_codegen();
|
|
@@ -5374,7 +5374,7 @@ var require_propertyNames = __commonJS((exports) => {
|
|
|
5374
5374
|
exports.default = def;
|
|
5375
5375
|
});
|
|
5376
5376
|
|
|
5377
|
-
//
|
|
5377
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5378
5378
|
var require_additionalProperties = __commonJS((exports) => {
|
|
5379
5379
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5380
5380
|
var code_1 = require_code2();
|
|
@@ -5477,7 +5477,7 @@ var require_additionalProperties = __commonJS((exports) => {
|
|
|
5477
5477
|
exports.default = def;
|
|
5478
5478
|
});
|
|
5479
5479
|
|
|
5480
|
-
//
|
|
5480
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5481
5481
|
var require_properties = __commonJS((exports) => {
|
|
5482
5482
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5483
5483
|
var validate_1 = require_validate();
|
|
@@ -5532,7 +5532,7 @@ var require_properties = __commonJS((exports) => {
|
|
|
5532
5532
|
exports.default = def;
|
|
5533
5533
|
});
|
|
5534
5534
|
|
|
5535
|
-
//
|
|
5535
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5536
5536
|
var require_patternProperties = __commonJS((exports) => {
|
|
5537
5537
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5538
5538
|
var code_1 = require_code2();
|
|
@@ -5603,7 +5603,7 @@ var require_patternProperties = __commonJS((exports) => {
|
|
|
5603
5603
|
exports.default = def;
|
|
5604
5604
|
});
|
|
5605
5605
|
|
|
5606
|
-
//
|
|
5606
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5607
5607
|
var require_not = __commonJS((exports) => {
|
|
5608
5608
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5609
5609
|
var util_1 = require_util();
|
|
@@ -5631,7 +5631,7 @@ var require_not = __commonJS((exports) => {
|
|
|
5631
5631
|
exports.default = def;
|
|
5632
5632
|
});
|
|
5633
5633
|
|
|
5634
|
-
//
|
|
5634
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5635
5635
|
var require_anyOf = __commonJS((exports) => {
|
|
5636
5636
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5637
5637
|
var code_1 = require_code2();
|
|
@@ -5645,7 +5645,7 @@ var require_anyOf = __commonJS((exports) => {
|
|
|
5645
5645
|
exports.default = def;
|
|
5646
5646
|
});
|
|
5647
5647
|
|
|
5648
|
-
//
|
|
5648
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5649
5649
|
var require_oneOf = __commonJS((exports) => {
|
|
5650
5650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5651
5651
|
var codegen_1 = require_codegen();
|
|
@@ -5700,7 +5700,7 @@ var require_oneOf = __commonJS((exports) => {
|
|
|
5700
5700
|
exports.default = def;
|
|
5701
5701
|
});
|
|
5702
5702
|
|
|
5703
|
-
//
|
|
5703
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5704
5704
|
var require_allOf = __commonJS((exports) => {
|
|
5705
5705
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5706
5706
|
var util_1 = require_util();
|
|
@@ -5724,7 +5724,7 @@ var require_allOf = __commonJS((exports) => {
|
|
|
5724
5724
|
exports.default = def;
|
|
5725
5725
|
});
|
|
5726
5726
|
|
|
5727
|
-
//
|
|
5727
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5728
5728
|
var require_if = __commonJS((exports) => {
|
|
5729
5729
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5730
5730
|
var codegen_1 = require_codegen();
|
|
@@ -5790,7 +5790,7 @@ var require_if = __commonJS((exports) => {
|
|
|
5790
5790
|
exports.default = def;
|
|
5791
5791
|
});
|
|
5792
5792
|
|
|
5793
|
-
//
|
|
5793
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5794
5794
|
var require_thenElse = __commonJS((exports) => {
|
|
5795
5795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5796
5796
|
var util_1 = require_util();
|
|
@@ -5805,7 +5805,7 @@ var require_thenElse = __commonJS((exports) => {
|
|
|
5805
5805
|
exports.default = def;
|
|
5806
5806
|
});
|
|
5807
5807
|
|
|
5808
|
-
//
|
|
5808
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5809
5809
|
var require_applicator = __commonJS((exports) => {
|
|
5810
5810
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5811
5811
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -5848,7 +5848,7 @@ var require_applicator = __commonJS((exports) => {
|
|
|
5848
5848
|
exports.default = getApplicator;
|
|
5849
5849
|
});
|
|
5850
5850
|
|
|
5851
|
-
//
|
|
5851
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
5852
5852
|
var require_format = __commonJS((exports) => {
|
|
5853
5853
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5854
5854
|
var codegen_1 = require_codegen();
|
|
@@ -5935,7 +5935,7 @@ var require_format = __commonJS((exports) => {
|
|
|
5935
5935
|
exports.default = def;
|
|
5936
5936
|
});
|
|
5937
5937
|
|
|
5938
|
-
//
|
|
5938
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
5939
5939
|
var require_format2 = __commonJS((exports) => {
|
|
5940
5940
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5941
5941
|
var format_1 = require_format();
|
|
@@ -5943,7 +5943,7 @@ var require_format2 = __commonJS((exports) => {
|
|
|
5943
5943
|
exports.default = format;
|
|
5944
5944
|
});
|
|
5945
5945
|
|
|
5946
|
-
//
|
|
5946
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
5947
5947
|
var require_metadata = __commonJS((exports) => {
|
|
5948
5948
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5949
5949
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
@@ -5963,7 +5963,7 @@ var require_metadata = __commonJS((exports) => {
|
|
|
5963
5963
|
];
|
|
5964
5964
|
});
|
|
5965
5965
|
|
|
5966
|
-
//
|
|
5966
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
5967
5967
|
var require_draft7 = __commonJS((exports) => {
|
|
5968
5968
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5969
5969
|
var core_1 = require_core2();
|
|
@@ -5982,7 +5982,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
5982
5982
|
exports.default = draft7Vocabularies;
|
|
5983
5983
|
});
|
|
5984
5984
|
|
|
5985
|
-
//
|
|
5985
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
5986
5986
|
var require_types = __commonJS((exports) => {
|
|
5987
5987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5988
5988
|
exports.DiscrError = undefined;
|
|
@@ -5993,7 +5993,7 @@ var require_types = __commonJS((exports) => {
|
|
|
5993
5993
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
5994
5994
|
});
|
|
5995
5995
|
|
|
5996
|
-
//
|
|
5996
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
5997
5997
|
var require_discriminator = __commonJS((exports) => {
|
|
5998
5998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5999
5999
|
var codegen_1 = require_codegen();
|
|
@@ -6095,7 +6095,7 @@ var require_discriminator = __commonJS((exports) => {
|
|
|
6095
6095
|
exports.default = def;
|
|
6096
6096
|
});
|
|
6097
6097
|
|
|
6098
|
-
//
|
|
6098
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6099
6099
|
var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
6100
6100
|
module.exports = {
|
|
6101
6101
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6250,7 +6250,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
|
6250
6250
|
};
|
|
6251
6251
|
});
|
|
6252
6252
|
|
|
6253
|
-
//
|
|
6253
|
+
// ../../../node_modules/.bun/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
6254
6254
|
var require_ajv = __commonJS((exports, module) => {
|
|
6255
6255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6256
6256
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
@@ -6318,7 +6318,7 @@ var require_ajv = __commonJS((exports, module) => {
|
|
|
6318
6318
|
} });
|
|
6319
6319
|
});
|
|
6320
6320
|
|
|
6321
|
-
//
|
|
6321
|
+
// ../../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
|
|
6322
6322
|
var require_formats = __commonJS((exports) => {
|
|
6323
6323
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6324
6324
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
@@ -6495,7 +6495,7 @@ var require_formats = __commonJS((exports) => {
|
|
|
6495
6495
|
}
|
|
6496
6496
|
});
|
|
6497
6497
|
|
|
6498
|
-
//
|
|
6498
|
+
// ../../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
|
|
6499
6499
|
var require_limit = __commonJS((exports) => {
|
|
6500
6500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6501
6501
|
exports.formatLimitDefinition = undefined;
|
|
@@ -6564,7 +6564,7 @@ var require_limit = __commonJS((exports) => {
|
|
|
6564
6564
|
exports.default = formatLimitPlugin;
|
|
6565
6565
|
});
|
|
6566
6566
|
|
|
6567
|
-
//
|
|
6567
|
+
// ../../../node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
|
|
6568
6568
|
var require_dist = __commonJS((exports, module) => {
|
|
6569
6569
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6570
6570
|
var formats_1 = require_formats();
|
|
@@ -6603,7 +6603,7 @@ var require_dist = __commonJS((exports, module) => {
|
|
|
6603
6603
|
exports.default = formatsPlugin;
|
|
6604
6604
|
});
|
|
6605
6605
|
|
|
6606
|
-
//
|
|
6606
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/TemplateTag/TemplateTag.js
|
|
6607
6607
|
var require_TemplateTag = __commonJS((exports, module) => {
|
|
6608
6608
|
Object.defineProperty(exports, "__esModule", {
|
|
6609
6609
|
value: true
|
|
@@ -6709,7 +6709,7 @@ var require_TemplateTag = __commonJS((exports, module) => {
|
|
|
6709
6709
|
module.exports = exports["default"];
|
|
6710
6710
|
});
|
|
6711
6711
|
|
|
6712
|
-
//
|
|
6712
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/TemplateTag/index.js
|
|
6713
6713
|
var require_TemplateTag2 = __commonJS((exports, module) => {
|
|
6714
6714
|
Object.defineProperty(exports, "__esModule", {
|
|
6715
6715
|
value: true
|
|
@@ -6724,7 +6724,7 @@ var require_TemplateTag2 = __commonJS((exports, module) => {
|
|
|
6724
6724
|
module.exports = exports["default"];
|
|
6725
6725
|
});
|
|
6726
6726
|
|
|
6727
|
-
//
|
|
6727
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/trimResultTransformer/trimResultTransformer.js
|
|
6728
6728
|
var require_trimResultTransformer = __commonJS((exports, module) => {
|
|
6729
6729
|
Object.defineProperty(exports, "__esModule", {
|
|
6730
6730
|
value: true
|
|
@@ -6751,7 +6751,7 @@ var require_trimResultTransformer = __commonJS((exports, module) => {
|
|
|
6751
6751
|
module.exports = exports["default"];
|
|
6752
6752
|
});
|
|
6753
6753
|
|
|
6754
|
-
//
|
|
6754
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/trimResultTransformer/index.js
|
|
6755
6755
|
var require_trimResultTransformer2 = __commonJS((exports, module) => {
|
|
6756
6756
|
Object.defineProperty(exports, "__esModule", {
|
|
6757
6757
|
value: true
|
|
@@ -6766,7 +6766,7 @@ var require_trimResultTransformer2 = __commonJS((exports, module) => {
|
|
|
6766
6766
|
module.exports = exports["default"];
|
|
6767
6767
|
});
|
|
6768
6768
|
|
|
6769
|
-
//
|
|
6769
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/stripIndentTransformer/stripIndentTransformer.js
|
|
6770
6770
|
var require_stripIndentTransformer = __commonJS((exports, module) => {
|
|
6771
6771
|
Object.defineProperty(exports, "__esModule", {
|
|
6772
6772
|
value: true
|
|
@@ -6807,7 +6807,7 @@ var require_stripIndentTransformer = __commonJS((exports, module) => {
|
|
|
6807
6807
|
module.exports = exports["default"];
|
|
6808
6808
|
});
|
|
6809
6809
|
|
|
6810
|
-
//
|
|
6810
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/stripIndentTransformer/index.js
|
|
6811
6811
|
var require_stripIndentTransformer2 = __commonJS((exports, module) => {
|
|
6812
6812
|
Object.defineProperty(exports, "__esModule", {
|
|
6813
6813
|
value: true
|
|
@@ -6822,7 +6822,7 @@ var require_stripIndentTransformer2 = __commonJS((exports, module) => {
|
|
|
6822
6822
|
module.exports = exports["default"];
|
|
6823
6823
|
});
|
|
6824
6824
|
|
|
6825
|
-
//
|
|
6825
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/replaceResultTransformer/replaceResultTransformer.js
|
|
6826
6826
|
var require_replaceResultTransformer = __commonJS((exports, module) => {
|
|
6827
6827
|
Object.defineProperty(exports, "__esModule", {
|
|
6828
6828
|
value: true
|
|
@@ -6841,7 +6841,7 @@ var require_replaceResultTransformer = __commonJS((exports, module) => {
|
|
|
6841
6841
|
module.exports = exports["default"];
|
|
6842
6842
|
});
|
|
6843
6843
|
|
|
6844
|
-
//
|
|
6844
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/replaceResultTransformer/index.js
|
|
6845
6845
|
var require_replaceResultTransformer2 = __commonJS((exports, module) => {
|
|
6846
6846
|
Object.defineProperty(exports, "__esModule", {
|
|
6847
6847
|
value: true
|
|
@@ -6856,7 +6856,7 @@ var require_replaceResultTransformer2 = __commonJS((exports, module) => {
|
|
|
6856
6856
|
module.exports = exports["default"];
|
|
6857
6857
|
});
|
|
6858
6858
|
|
|
6859
|
-
//
|
|
6859
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js
|
|
6860
6860
|
var require_replaceSubstitutionTransformer = __commonJS((exports, module) => {
|
|
6861
6861
|
Object.defineProperty(exports, "__esModule", {
|
|
6862
6862
|
value: true
|
|
@@ -6879,7 +6879,7 @@ var require_replaceSubstitutionTransformer = __commonJS((exports, module) => {
|
|
|
6879
6879
|
module.exports = exports["default"];
|
|
6880
6880
|
});
|
|
6881
6881
|
|
|
6882
|
-
//
|
|
6882
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/replaceSubstitutionTransformer/index.js
|
|
6883
6883
|
var require_replaceSubstitutionTransformer2 = __commonJS((exports, module) => {
|
|
6884
6884
|
Object.defineProperty(exports, "__esModule", {
|
|
6885
6885
|
value: true
|
|
@@ -6894,7 +6894,7 @@ var require_replaceSubstitutionTransformer2 = __commonJS((exports, module) => {
|
|
|
6894
6894
|
module.exports = exports["default"];
|
|
6895
6895
|
});
|
|
6896
6896
|
|
|
6897
|
-
//
|
|
6897
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/replaceStringTransformer/replaceStringTransformer.js
|
|
6898
6898
|
var require_replaceStringTransformer = __commonJS((exports, module) => {
|
|
6899
6899
|
Object.defineProperty(exports, "__esModule", {
|
|
6900
6900
|
value: true
|
|
@@ -6913,7 +6913,7 @@ var require_replaceStringTransformer = __commonJS((exports, module) => {
|
|
|
6913
6913
|
module.exports = exports["default"];
|
|
6914
6914
|
});
|
|
6915
6915
|
|
|
6916
|
-
//
|
|
6916
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/replaceStringTransformer/index.js
|
|
6917
6917
|
var require_replaceStringTransformer2 = __commonJS((exports, module) => {
|
|
6918
6918
|
Object.defineProperty(exports, "__esModule", {
|
|
6919
6919
|
value: true
|
|
@@ -6928,7 +6928,7 @@ var require_replaceStringTransformer2 = __commonJS((exports, module) => {
|
|
|
6928
6928
|
module.exports = exports["default"];
|
|
6929
6929
|
});
|
|
6930
6930
|
|
|
6931
|
-
//
|
|
6931
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/inlineArrayTransformer/inlineArrayTransformer.js
|
|
6932
6932
|
var require_inlineArrayTransformer = __commonJS((exports, module) => {
|
|
6933
6933
|
Object.defineProperty(exports, "__esModule", {
|
|
6934
6934
|
value: true
|
|
@@ -6966,7 +6966,7 @@ var require_inlineArrayTransformer = __commonJS((exports, module) => {
|
|
|
6966
6966
|
module.exports = exports["default"];
|
|
6967
6967
|
});
|
|
6968
6968
|
|
|
6969
|
-
//
|
|
6969
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/inlineArrayTransformer/index.js
|
|
6970
6970
|
var require_inlineArrayTransformer2 = __commonJS((exports, module) => {
|
|
6971
6971
|
Object.defineProperty(exports, "__esModule", {
|
|
6972
6972
|
value: true
|
|
@@ -6981,7 +6981,7 @@ var require_inlineArrayTransformer2 = __commonJS((exports, module) => {
|
|
|
6981
6981
|
module.exports = exports["default"];
|
|
6982
6982
|
});
|
|
6983
6983
|
|
|
6984
|
-
//
|
|
6984
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/splitStringTransformer/splitStringTransformer.js
|
|
6985
6985
|
var require_splitStringTransformer = __commonJS((exports, module) => {
|
|
6986
6986
|
Object.defineProperty(exports, "__esModule", {
|
|
6987
6987
|
value: true
|
|
@@ -7004,7 +7004,7 @@ var require_splitStringTransformer = __commonJS((exports, module) => {
|
|
|
7004
7004
|
module.exports = exports["default"];
|
|
7005
7005
|
});
|
|
7006
7006
|
|
|
7007
|
-
//
|
|
7007
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/splitStringTransformer/index.js
|
|
7008
7008
|
var require_splitStringTransformer2 = __commonJS((exports, module) => {
|
|
7009
7009
|
Object.defineProperty(exports, "__esModule", {
|
|
7010
7010
|
value: true
|
|
@@ -7019,7 +7019,7 @@ var require_splitStringTransformer2 = __commonJS((exports, module) => {
|
|
|
7019
7019
|
module.exports = exports["default"];
|
|
7020
7020
|
});
|
|
7021
7021
|
|
|
7022
|
-
//
|
|
7022
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js
|
|
7023
7023
|
var require_removeNonPrintingValuesTransformer = __commonJS((exports, module) => {
|
|
7024
7024
|
Object.defineProperty(exports, "__esModule", {
|
|
7025
7025
|
value: true
|
|
@@ -7044,7 +7044,7 @@ var require_removeNonPrintingValuesTransformer = __commonJS((exports, module) =>
|
|
|
7044
7044
|
module.exports = exports["default"];
|
|
7045
7045
|
});
|
|
7046
7046
|
|
|
7047
|
-
//
|
|
7047
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/removeNonPrintingValuesTransformer/index.js
|
|
7048
7048
|
var require_removeNonPrintingValuesTransformer2 = __commonJS((exports, module) => {
|
|
7049
7049
|
Object.defineProperty(exports, "__esModule", {
|
|
7050
7050
|
value: true
|
|
@@ -7059,7 +7059,7 @@ var require_removeNonPrintingValuesTransformer2 = __commonJS((exports, module) =
|
|
|
7059
7059
|
module.exports = exports["default"];
|
|
7060
7060
|
});
|
|
7061
7061
|
|
|
7062
|
-
//
|
|
7062
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/commaLists/commaLists.js
|
|
7063
7063
|
var require_commaLists = __commonJS((exports, module) => {
|
|
7064
7064
|
Object.defineProperty(exports, "__esModule", {
|
|
7065
7065
|
value: true
|
|
@@ -7080,7 +7080,7 @@ var require_commaLists = __commonJS((exports, module) => {
|
|
|
7080
7080
|
module.exports = exports["default"];
|
|
7081
7081
|
});
|
|
7082
7082
|
|
|
7083
|
-
//
|
|
7083
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/commaLists/index.js
|
|
7084
7084
|
var require_commaLists2 = __commonJS((exports, module) => {
|
|
7085
7085
|
Object.defineProperty(exports, "__esModule", {
|
|
7086
7086
|
value: true
|
|
@@ -7095,7 +7095,7 @@ var require_commaLists2 = __commonJS((exports, module) => {
|
|
|
7095
7095
|
module.exports = exports["default"];
|
|
7096
7096
|
});
|
|
7097
7097
|
|
|
7098
|
-
//
|
|
7098
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/commaListsAnd/commaListsAnd.js
|
|
7099
7099
|
var require_commaListsAnd = __commonJS((exports, module) => {
|
|
7100
7100
|
Object.defineProperty(exports, "__esModule", {
|
|
7101
7101
|
value: true
|
|
@@ -7116,7 +7116,7 @@ var require_commaListsAnd = __commonJS((exports, module) => {
|
|
|
7116
7116
|
module.exports = exports["default"];
|
|
7117
7117
|
});
|
|
7118
7118
|
|
|
7119
|
-
//
|
|
7119
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/commaListsAnd/index.js
|
|
7120
7120
|
var require_commaListsAnd2 = __commonJS((exports, module) => {
|
|
7121
7121
|
Object.defineProperty(exports, "__esModule", {
|
|
7122
7122
|
value: true
|
|
@@ -7131,7 +7131,7 @@ var require_commaListsAnd2 = __commonJS((exports, module) => {
|
|
|
7131
7131
|
module.exports = exports["default"];
|
|
7132
7132
|
});
|
|
7133
7133
|
|
|
7134
|
-
//
|
|
7134
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/commaListsOr/commaListsOr.js
|
|
7135
7135
|
var require_commaListsOr = __commonJS((exports, module) => {
|
|
7136
7136
|
Object.defineProperty(exports, "__esModule", {
|
|
7137
7137
|
value: true
|
|
@@ -7152,7 +7152,7 @@ var require_commaListsOr = __commonJS((exports, module) => {
|
|
|
7152
7152
|
module.exports = exports["default"];
|
|
7153
7153
|
});
|
|
7154
7154
|
|
|
7155
|
-
//
|
|
7155
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/commaListsOr/index.js
|
|
7156
7156
|
var require_commaListsOr2 = __commonJS((exports, module) => {
|
|
7157
7157
|
Object.defineProperty(exports, "__esModule", {
|
|
7158
7158
|
value: true
|
|
@@ -7167,7 +7167,7 @@ var require_commaListsOr2 = __commonJS((exports, module) => {
|
|
|
7167
7167
|
module.exports = exports["default"];
|
|
7168
7168
|
});
|
|
7169
7169
|
|
|
7170
|
-
//
|
|
7170
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/html/html.js
|
|
7171
7171
|
var require_html = __commonJS((exports, module) => {
|
|
7172
7172
|
Object.defineProperty(exports, "__esModule", {
|
|
7173
7173
|
value: true
|
|
@@ -7193,7 +7193,7 @@ var require_html = __commonJS((exports, module) => {
|
|
|
7193
7193
|
module.exports = exports["default"];
|
|
7194
7194
|
});
|
|
7195
7195
|
|
|
7196
|
-
//
|
|
7196
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/html/index.js
|
|
7197
7197
|
var require_html2 = __commonJS((exports, module) => {
|
|
7198
7198
|
Object.defineProperty(exports, "__esModule", {
|
|
7199
7199
|
value: true
|
|
@@ -7208,7 +7208,7 @@ var require_html2 = __commonJS((exports, module) => {
|
|
|
7208
7208
|
module.exports = exports["default"];
|
|
7209
7209
|
});
|
|
7210
7210
|
|
|
7211
|
-
//
|
|
7211
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/codeBlock/index.js
|
|
7212
7212
|
var require_codeBlock = __commonJS((exports, module) => {
|
|
7213
7213
|
Object.defineProperty(exports, "__esModule", {
|
|
7214
7214
|
value: true
|
|
@@ -7223,7 +7223,7 @@ var require_codeBlock = __commonJS((exports, module) => {
|
|
|
7223
7223
|
module.exports = exports["default"];
|
|
7224
7224
|
});
|
|
7225
7225
|
|
|
7226
|
-
//
|
|
7226
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/source/index.js
|
|
7227
7227
|
var require_source = __commonJS((exports, module) => {
|
|
7228
7228
|
Object.defineProperty(exports, "__esModule", {
|
|
7229
7229
|
value: true
|
|
@@ -7238,7 +7238,7 @@ var require_source = __commonJS((exports, module) => {
|
|
|
7238
7238
|
module.exports = exports["default"];
|
|
7239
7239
|
});
|
|
7240
7240
|
|
|
7241
|
-
//
|
|
7241
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/safeHtml/safeHtml.js
|
|
7242
7242
|
var require_safeHtml = __commonJS((exports, module) => {
|
|
7243
7243
|
Object.defineProperty(exports, "__esModule", {
|
|
7244
7244
|
value: true
|
|
@@ -7264,7 +7264,7 @@ var require_safeHtml = __commonJS((exports, module) => {
|
|
|
7264
7264
|
module.exports = exports["default"];
|
|
7265
7265
|
});
|
|
7266
7266
|
|
|
7267
|
-
//
|
|
7267
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/safeHtml/index.js
|
|
7268
7268
|
var require_safeHtml2 = __commonJS((exports, module) => {
|
|
7269
7269
|
Object.defineProperty(exports, "__esModule", {
|
|
7270
7270
|
value: true
|
|
@@ -7279,7 +7279,7 @@ var require_safeHtml2 = __commonJS((exports, module) => {
|
|
|
7279
7279
|
module.exports = exports["default"];
|
|
7280
7280
|
});
|
|
7281
7281
|
|
|
7282
|
-
//
|
|
7282
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLine/oneLine.js
|
|
7283
7283
|
var require_oneLine = __commonJS((exports, module) => {
|
|
7284
7284
|
Object.defineProperty(exports, "__esModule", {
|
|
7285
7285
|
value: true
|
|
@@ -7298,7 +7298,7 @@ var require_oneLine = __commonJS((exports, module) => {
|
|
|
7298
7298
|
module.exports = exports["default"];
|
|
7299
7299
|
});
|
|
7300
7300
|
|
|
7301
|
-
//
|
|
7301
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLine/index.js
|
|
7302
7302
|
var require_oneLine2 = __commonJS((exports, module) => {
|
|
7303
7303
|
Object.defineProperty(exports, "__esModule", {
|
|
7304
7304
|
value: true
|
|
@@ -7313,7 +7313,7 @@ var require_oneLine2 = __commonJS((exports, module) => {
|
|
|
7313
7313
|
module.exports = exports["default"];
|
|
7314
7314
|
});
|
|
7315
7315
|
|
|
7316
|
-
//
|
|
7316
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineTrim/oneLineTrim.js
|
|
7317
7317
|
var require_oneLineTrim = __commonJS((exports, module) => {
|
|
7318
7318
|
Object.defineProperty(exports, "__esModule", {
|
|
7319
7319
|
value: true
|
|
@@ -7332,7 +7332,7 @@ var require_oneLineTrim = __commonJS((exports, module) => {
|
|
|
7332
7332
|
module.exports = exports["default"];
|
|
7333
7333
|
});
|
|
7334
7334
|
|
|
7335
|
-
//
|
|
7335
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineTrim/index.js
|
|
7336
7336
|
var require_oneLineTrim2 = __commonJS((exports, module) => {
|
|
7337
7337
|
Object.defineProperty(exports, "__esModule", {
|
|
7338
7338
|
value: true
|
|
@@ -7347,7 +7347,7 @@ var require_oneLineTrim2 = __commonJS((exports, module) => {
|
|
|
7347
7347
|
module.exports = exports["default"];
|
|
7348
7348
|
});
|
|
7349
7349
|
|
|
7350
|
-
//
|
|
7350
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineCommaLists/oneLineCommaLists.js
|
|
7351
7351
|
var require_oneLineCommaLists = __commonJS((exports, module) => {
|
|
7352
7352
|
Object.defineProperty(exports, "__esModule", {
|
|
7353
7353
|
value: true
|
|
@@ -7368,7 +7368,7 @@ var require_oneLineCommaLists = __commonJS((exports, module) => {
|
|
|
7368
7368
|
module.exports = exports["default"];
|
|
7369
7369
|
});
|
|
7370
7370
|
|
|
7371
|
-
//
|
|
7371
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineCommaLists/index.js
|
|
7372
7372
|
var require_oneLineCommaLists2 = __commonJS((exports, module) => {
|
|
7373
7373
|
Object.defineProperty(exports, "__esModule", {
|
|
7374
7374
|
value: true
|
|
@@ -7383,7 +7383,7 @@ var require_oneLineCommaLists2 = __commonJS((exports, module) => {
|
|
|
7383
7383
|
module.exports = exports["default"];
|
|
7384
7384
|
});
|
|
7385
7385
|
|
|
7386
|
-
//
|
|
7386
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineCommaListsOr/oneLineCommaListsOr.js
|
|
7387
7387
|
var require_oneLineCommaListsOr = __commonJS((exports, module) => {
|
|
7388
7388
|
Object.defineProperty(exports, "__esModule", {
|
|
7389
7389
|
value: true
|
|
@@ -7404,7 +7404,7 @@ var require_oneLineCommaListsOr = __commonJS((exports, module) => {
|
|
|
7404
7404
|
module.exports = exports["default"];
|
|
7405
7405
|
});
|
|
7406
7406
|
|
|
7407
|
-
//
|
|
7407
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineCommaListsOr/index.js
|
|
7408
7408
|
var require_oneLineCommaListsOr2 = __commonJS((exports, module) => {
|
|
7409
7409
|
Object.defineProperty(exports, "__esModule", {
|
|
7410
7410
|
value: true
|
|
@@ -7419,7 +7419,7 @@ var require_oneLineCommaListsOr2 = __commonJS((exports, module) => {
|
|
|
7419
7419
|
module.exports = exports["default"];
|
|
7420
7420
|
});
|
|
7421
7421
|
|
|
7422
|
-
//
|
|
7422
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineCommaListsAnd/oneLineCommaListsAnd.js
|
|
7423
7423
|
var require_oneLineCommaListsAnd = __commonJS((exports, module) => {
|
|
7424
7424
|
Object.defineProperty(exports, "__esModule", {
|
|
7425
7425
|
value: true
|
|
@@ -7440,7 +7440,7 @@ var require_oneLineCommaListsAnd = __commonJS((exports, module) => {
|
|
|
7440
7440
|
module.exports = exports["default"];
|
|
7441
7441
|
});
|
|
7442
7442
|
|
|
7443
|
-
//
|
|
7443
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineCommaListsAnd/index.js
|
|
7444
7444
|
var require_oneLineCommaListsAnd2 = __commonJS((exports, module) => {
|
|
7445
7445
|
Object.defineProperty(exports, "__esModule", {
|
|
7446
7446
|
value: true
|
|
@@ -7455,7 +7455,7 @@ var require_oneLineCommaListsAnd2 = __commonJS((exports, module) => {
|
|
|
7455
7455
|
module.exports = exports["default"];
|
|
7456
7456
|
});
|
|
7457
7457
|
|
|
7458
|
-
//
|
|
7458
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/inlineLists/inlineLists.js
|
|
7459
7459
|
var require_inlineLists = __commonJS((exports, module) => {
|
|
7460
7460
|
Object.defineProperty(exports, "__esModule", {
|
|
7461
7461
|
value: true
|
|
@@ -7476,7 +7476,7 @@ var require_inlineLists = __commonJS((exports, module) => {
|
|
|
7476
7476
|
module.exports = exports["default"];
|
|
7477
7477
|
});
|
|
7478
7478
|
|
|
7479
|
-
//
|
|
7479
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/inlineLists/index.js
|
|
7480
7480
|
var require_inlineLists2 = __commonJS((exports, module) => {
|
|
7481
7481
|
Object.defineProperty(exports, "__esModule", {
|
|
7482
7482
|
value: true
|
|
@@ -7491,7 +7491,7 @@ var require_inlineLists2 = __commonJS((exports, module) => {
|
|
|
7491
7491
|
module.exports = exports["default"];
|
|
7492
7492
|
});
|
|
7493
7493
|
|
|
7494
|
-
//
|
|
7494
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineInlineLists/oneLineInlineLists.js
|
|
7495
7495
|
var require_oneLineInlineLists = __commonJS((exports, module) => {
|
|
7496
7496
|
Object.defineProperty(exports, "__esModule", {
|
|
7497
7497
|
value: true
|
|
@@ -7512,7 +7512,7 @@ var require_oneLineInlineLists = __commonJS((exports, module) => {
|
|
|
7512
7512
|
module.exports = exports["default"];
|
|
7513
7513
|
});
|
|
7514
7514
|
|
|
7515
|
-
//
|
|
7515
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/oneLineInlineLists/index.js
|
|
7516
7516
|
var require_oneLineInlineLists2 = __commonJS((exports, module) => {
|
|
7517
7517
|
Object.defineProperty(exports, "__esModule", {
|
|
7518
7518
|
value: true
|
|
@@ -7527,7 +7527,7 @@ var require_oneLineInlineLists2 = __commonJS((exports, module) => {
|
|
|
7527
7527
|
module.exports = exports["default"];
|
|
7528
7528
|
});
|
|
7529
7529
|
|
|
7530
|
-
//
|
|
7530
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/stripIndent/stripIndent.js
|
|
7531
7531
|
var require_stripIndent = __commonJS((exports, module) => {
|
|
7532
7532
|
Object.defineProperty(exports, "__esModule", {
|
|
7533
7533
|
value: true
|
|
@@ -7546,7 +7546,7 @@ var require_stripIndent = __commonJS((exports, module) => {
|
|
|
7546
7546
|
module.exports = exports["default"];
|
|
7547
7547
|
});
|
|
7548
7548
|
|
|
7549
|
-
//
|
|
7549
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/stripIndent/index.js
|
|
7550
7550
|
var require_stripIndent2 = __commonJS((exports, module) => {
|
|
7551
7551
|
Object.defineProperty(exports, "__esModule", {
|
|
7552
7552
|
value: true
|
|
@@ -7561,7 +7561,7 @@ var require_stripIndent2 = __commonJS((exports, module) => {
|
|
|
7561
7561
|
module.exports = exports["default"];
|
|
7562
7562
|
});
|
|
7563
7563
|
|
|
7564
|
-
//
|
|
7564
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/stripIndents/stripIndents.js
|
|
7565
7565
|
var require_stripIndents = __commonJS((exports, module) => {
|
|
7566
7566
|
Object.defineProperty(exports, "__esModule", {
|
|
7567
7567
|
value: true
|
|
@@ -7580,7 +7580,7 @@ var require_stripIndents = __commonJS((exports, module) => {
|
|
|
7580
7580
|
module.exports = exports["default"];
|
|
7581
7581
|
});
|
|
7582
7582
|
|
|
7583
|
-
//
|
|
7583
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/stripIndents/index.js
|
|
7584
7584
|
var require_stripIndents2 = __commonJS((exports, module) => {
|
|
7585
7585
|
Object.defineProperty(exports, "__esModule", {
|
|
7586
7586
|
value: true
|
|
@@ -7595,7 +7595,7 @@ var require_stripIndents2 = __commonJS((exports, module) => {
|
|
|
7595
7595
|
module.exports = exports["default"];
|
|
7596
7596
|
});
|
|
7597
7597
|
|
|
7598
|
-
//
|
|
7598
|
+
// ../../../node_modules/.bun/common-tags@1.8.2/node_modules/common-tags/lib/index.js
|
|
7599
7599
|
var require_lib = __commonJS((exports) => {
|
|
7600
7600
|
Object.defineProperty(exports, "__esModule", {
|
|
7601
7601
|
value: true
|
|
@@ -7684,7 +7684,7 @@ var require_lib = __commonJS((exports) => {
|
|
|
7684
7684
|
// src/server.ts
|
|
7685
7685
|
import { readFileSync } from "node:fs";
|
|
7686
7686
|
|
|
7687
|
-
//
|
|
7687
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v3/helpers/util.js
|
|
7688
7688
|
var util;
|
|
7689
7689
|
(function(util2) {
|
|
7690
7690
|
util2.assertEqual = (_) => {};
|
|
@@ -7815,7 +7815,7 @@ var getParsedType = (data) => {
|
|
|
7815
7815
|
}
|
|
7816
7816
|
};
|
|
7817
7817
|
|
|
7818
|
-
//
|
|
7818
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v3/ZodError.js
|
|
7819
7819
|
var ZodIssueCode = util.arrayToEnum([
|
|
7820
7820
|
"invalid_type",
|
|
7821
7821
|
"invalid_literal",
|
|
@@ -7929,7 +7929,7 @@ ZodError.create = (issues) => {
|
|
|
7929
7929
|
return error;
|
|
7930
7930
|
};
|
|
7931
7931
|
|
|
7932
|
-
//
|
|
7932
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v3/locales/en.js
|
|
7933
7933
|
var errorMap = (issue, _ctx) => {
|
|
7934
7934
|
let message;
|
|
7935
7935
|
switch (issue.code) {
|
|
@@ -8032,13 +8032,13 @@ var errorMap = (issue, _ctx) => {
|
|
|
8032
8032
|
};
|
|
8033
8033
|
var en_default = errorMap;
|
|
8034
8034
|
|
|
8035
|
-
//
|
|
8035
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v3/errors.js
|
|
8036
8036
|
var overrideErrorMap = en_default;
|
|
8037
8037
|
function getErrorMap() {
|
|
8038
8038
|
return overrideErrorMap;
|
|
8039
8039
|
}
|
|
8040
8040
|
|
|
8041
|
-
//
|
|
8041
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v3/helpers/parseUtil.js
|
|
8042
8042
|
var makeIssue = (params) => {
|
|
8043
8043
|
const { data, path, errorMaps, issueData } = params;
|
|
8044
8044
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -8144,14 +8144,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
8144
8144
|
var isValid = (x) => x.status === "valid";
|
|
8145
8145
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
8146
8146
|
|
|
8147
|
-
//
|
|
8147
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.js
|
|
8148
8148
|
var errorUtil;
|
|
8149
8149
|
(function(errorUtil2) {
|
|
8150
8150
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
8151
8151
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
8152
8152
|
})(errorUtil || (errorUtil = {}));
|
|
8153
8153
|
|
|
8154
|
-
//
|
|
8154
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v3/types.js
|
|
8155
8155
|
class ParseInputLazyPath {
|
|
8156
8156
|
constructor(parent, value, path, key) {
|
|
8157
8157
|
this._cachedPath = [];
|
|
@@ -11495,7 +11495,7 @@ var nullableType = ZodNullable.create;
|
|
|
11495
11495
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
11496
11496
|
var pipelineType = ZodPipeline.create;
|
|
11497
11497
|
|
|
11498
|
-
//
|
|
11498
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
11499
11499
|
var exports_core2 = {};
|
|
11500
11500
|
__export(exports_core2, {
|
|
11501
11501
|
version: () => version,
|
|
@@ -11774,7 +11774,7 @@ __export(exports_core2, {
|
|
|
11774
11774
|
$ZodAny: () => $ZodAny
|
|
11775
11775
|
});
|
|
11776
11776
|
|
|
11777
|
-
//
|
|
11777
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
11778
11778
|
var _a;
|
|
11779
11779
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
11780
11780
|
status: "aborted"
|
|
@@ -11852,7 +11852,7 @@ function config(newConfig) {
|
|
|
11852
11852
|
Object.assign(globalConfig, newConfig);
|
|
11853
11853
|
return globalConfig;
|
|
11854
11854
|
}
|
|
11855
|
-
//
|
|
11855
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
11856
11856
|
var exports_util = {};
|
|
11857
11857
|
__export(exports_util, {
|
|
11858
11858
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -12544,7 +12544,7 @@ class Class {
|
|
|
12544
12544
|
constructor(..._args) {}
|
|
12545
12545
|
}
|
|
12546
12546
|
|
|
12547
|
-
//
|
|
12547
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
12548
12548
|
var initializer = (inst, def) => {
|
|
12549
12549
|
inst.name = "$ZodError";
|
|
12550
12550
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -12684,7 +12684,7 @@ function prettifyError(error) {
|
|
|
12684
12684
|
`);
|
|
12685
12685
|
}
|
|
12686
12686
|
|
|
12687
|
-
//
|
|
12687
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
12688
12688
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
12689
12689
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
12690
12690
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -12771,7 +12771,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
12771
12771
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
12772
12772
|
};
|
|
12773
12773
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
12774
|
-
//
|
|
12774
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
12775
12775
|
var exports_regexes = {};
|
|
12776
12776
|
__export(exports_regexes, {
|
|
12777
12777
|
xid: () => xid,
|
|
@@ -12930,7 +12930,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
12930
12930
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
12931
12931
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
12932
12932
|
|
|
12933
|
-
//
|
|
12933
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
12934
12934
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
12935
12935
|
var _a2;
|
|
12936
12936
|
inst._zod ?? (inst._zod = {});
|
|
@@ -13477,7 +13477,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
13477
13477
|
};
|
|
13478
13478
|
});
|
|
13479
13479
|
|
|
13480
|
-
//
|
|
13480
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
13481
13481
|
class Doc {
|
|
13482
13482
|
constructor(args = []) {
|
|
13483
13483
|
this.content = [];
|
|
@@ -13515,14 +13515,14 @@ class Doc {
|
|
|
13515
13515
|
}
|
|
13516
13516
|
}
|
|
13517
13517
|
|
|
13518
|
-
//
|
|
13518
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
13519
13519
|
var version = {
|
|
13520
13520
|
major: 4,
|
|
13521
13521
|
minor: 4,
|
|
13522
13522
|
patch: 3
|
|
13523
13523
|
};
|
|
13524
13524
|
|
|
13525
|
-
//
|
|
13525
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
13526
13526
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
13527
13527
|
var _a2;
|
|
13528
13528
|
inst ?? (inst = {});
|
|
@@ -15606,7 +15606,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
15606
15606
|
payload.issues.push(issue(_iss));
|
|
15607
15607
|
}
|
|
15608
15608
|
}
|
|
15609
|
-
//
|
|
15609
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
15610
15610
|
var exports_locales = {};
|
|
15611
15611
|
__export(exports_locales, {
|
|
15612
15612
|
zhTW: () => zh_TW_default,
|
|
@@ -15663,7 +15663,7 @@ __export(exports_locales, {
|
|
|
15663
15663
|
ar: () => ar_default
|
|
15664
15664
|
});
|
|
15665
15665
|
|
|
15666
|
-
//
|
|
15666
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
15667
15667
|
var error = () => {
|
|
15668
15668
|
const Sizable = {
|
|
15669
15669
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -15769,7 +15769,7 @@ function ar_default() {
|
|
|
15769
15769
|
localeError: error()
|
|
15770
15770
|
};
|
|
15771
15771
|
}
|
|
15772
|
-
//
|
|
15772
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
15773
15773
|
var error2 = () => {
|
|
15774
15774
|
const Sizable = {
|
|
15775
15775
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -15874,7 +15874,7 @@ function az_default() {
|
|
|
15874
15874
|
localeError: error2()
|
|
15875
15875
|
};
|
|
15876
15876
|
}
|
|
15877
|
-
//
|
|
15877
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
15878
15878
|
function getBelarusianPlural(count, one, few, many) {
|
|
15879
15879
|
const absCount = Math.abs(count);
|
|
15880
15880
|
const lastDigit = absCount % 10;
|
|
@@ -16030,7 +16030,7 @@ function be_default() {
|
|
|
16030
16030
|
localeError: error3()
|
|
16031
16031
|
};
|
|
16032
16032
|
}
|
|
16033
|
-
//
|
|
16033
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
16034
16034
|
var error4 = () => {
|
|
16035
16035
|
const Sizable = {
|
|
16036
16036
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -16150,7 +16150,7 @@ function bg_default() {
|
|
|
16150
16150
|
localeError: error4()
|
|
16151
16151
|
};
|
|
16152
16152
|
}
|
|
16153
|
-
//
|
|
16153
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
16154
16154
|
var error5 = () => {
|
|
16155
16155
|
const Sizable = {
|
|
16156
16156
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -16257,7 +16257,7 @@ function ca_default() {
|
|
|
16257
16257
|
localeError: error5()
|
|
16258
16258
|
};
|
|
16259
16259
|
}
|
|
16260
|
-
//
|
|
16260
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
16261
16261
|
var error6 = () => {
|
|
16262
16262
|
const Sizable = {
|
|
16263
16263
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -16368,7 +16368,7 @@ function cs_default() {
|
|
|
16368
16368
|
localeError: error6()
|
|
16369
16369
|
};
|
|
16370
16370
|
}
|
|
16371
|
-
//
|
|
16371
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
16372
16372
|
var error7 = () => {
|
|
16373
16373
|
const Sizable = {
|
|
16374
16374
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -16483,7 +16483,7 @@ function da_default() {
|
|
|
16483
16483
|
localeError: error7()
|
|
16484
16484
|
};
|
|
16485
16485
|
}
|
|
16486
|
-
//
|
|
16486
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
16487
16487
|
var error8 = () => {
|
|
16488
16488
|
const Sizable = {
|
|
16489
16489
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -16591,7 +16591,7 @@ function de_default() {
|
|
|
16591
16591
|
localeError: error8()
|
|
16592
16592
|
};
|
|
16593
16593
|
}
|
|
16594
|
-
//
|
|
16594
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
16595
16595
|
var error9 = () => {
|
|
16596
16596
|
const Sizable = {
|
|
16597
16597
|
string: { unit: "χαρακτήρες", verb: "να έχει" },
|
|
@@ -16700,7 +16700,7 @@ function el_default() {
|
|
|
16700
16700
|
localeError: error9()
|
|
16701
16701
|
};
|
|
16702
16702
|
}
|
|
16703
|
-
//
|
|
16703
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
16704
16704
|
var error10 = () => {
|
|
16705
16705
|
const Sizable = {
|
|
16706
16706
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -16810,7 +16810,7 @@ function en_default2() {
|
|
|
16810
16810
|
localeError: error10()
|
|
16811
16811
|
};
|
|
16812
16812
|
}
|
|
16813
|
-
//
|
|
16813
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
16814
16814
|
var error11 = () => {
|
|
16815
16815
|
const Sizable = {
|
|
16816
16816
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -16919,7 +16919,7 @@ function eo_default() {
|
|
|
16919
16919
|
localeError: error11()
|
|
16920
16920
|
};
|
|
16921
16921
|
}
|
|
16922
|
-
//
|
|
16922
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
16923
16923
|
var error12 = () => {
|
|
16924
16924
|
const Sizable = {
|
|
16925
16925
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -17051,7 +17051,7 @@ function es_default() {
|
|
|
17051
17051
|
localeError: error12()
|
|
17052
17052
|
};
|
|
17053
17053
|
}
|
|
17054
|
-
//
|
|
17054
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
17055
17055
|
var error13 = () => {
|
|
17056
17056
|
const Sizable = {
|
|
17057
17057
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
@@ -17165,7 +17165,7 @@ function fa_default() {
|
|
|
17165
17165
|
localeError: error13()
|
|
17166
17166
|
};
|
|
17167
17167
|
}
|
|
17168
|
-
//
|
|
17168
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
17169
17169
|
var error14 = () => {
|
|
17170
17170
|
const Sizable = {
|
|
17171
17171
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
@@ -17277,7 +17277,7 @@ function fi_default() {
|
|
|
17277
17277
|
localeError: error14()
|
|
17278
17278
|
};
|
|
17279
17279
|
}
|
|
17280
|
-
//
|
|
17280
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
17281
17281
|
var error15 = () => {
|
|
17282
17282
|
const Sizable = {
|
|
17283
17283
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -17402,7 +17402,7 @@ function fr_default() {
|
|
|
17402
17402
|
localeError: error15()
|
|
17403
17403
|
};
|
|
17404
17404
|
}
|
|
17405
|
-
//
|
|
17405
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
17406
17406
|
var error16 = () => {
|
|
17407
17407
|
const Sizable = {
|
|
17408
17408
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -17509,7 +17509,7 @@ function fr_CA_default() {
|
|
|
17509
17509
|
localeError: error16()
|
|
17510
17510
|
};
|
|
17511
17511
|
}
|
|
17512
|
-
//
|
|
17512
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
17513
17513
|
var error17 = () => {
|
|
17514
17514
|
const TypeNames = {
|
|
17515
17515
|
string: { label: "מחרוזת", gender: "f" },
|
|
@@ -17702,7 +17702,7 @@ function he_default() {
|
|
|
17702
17702
|
localeError: error17()
|
|
17703
17703
|
};
|
|
17704
17704
|
}
|
|
17705
|
-
//
|
|
17705
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
17706
17706
|
var error18 = () => {
|
|
17707
17707
|
const Sizable = {
|
|
17708
17708
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -17824,7 +17824,7 @@ function hr_default() {
|
|
|
17824
17824
|
localeError: error18()
|
|
17825
17825
|
};
|
|
17826
17826
|
}
|
|
17827
|
-
//
|
|
17827
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
17828
17828
|
var error19 = () => {
|
|
17829
17829
|
const Sizable = {
|
|
17830
17830
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -17932,7 +17932,7 @@ function hu_default() {
|
|
|
17932
17932
|
localeError: error19()
|
|
17933
17933
|
};
|
|
17934
17934
|
}
|
|
17935
|
-
//
|
|
17935
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
17936
17936
|
function getArmenianPlural(count, one, many) {
|
|
17937
17937
|
return Math.abs(count) === 1 ? one : many;
|
|
17938
17938
|
}
|
|
@@ -18079,7 +18079,7 @@ function hy_default() {
|
|
|
18079
18079
|
localeError: error20()
|
|
18080
18080
|
};
|
|
18081
18081
|
}
|
|
18082
|
-
//
|
|
18082
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
18083
18083
|
var error21 = () => {
|
|
18084
18084
|
const Sizable = {
|
|
18085
18085
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -18185,7 +18185,7 @@ function id_default() {
|
|
|
18185
18185
|
localeError: error21()
|
|
18186
18186
|
};
|
|
18187
18187
|
}
|
|
18188
|
-
//
|
|
18188
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
18189
18189
|
var error22 = () => {
|
|
18190
18190
|
const Sizable = {
|
|
18191
18191
|
string: { unit: "stafi", verb: "að hafa" },
|
|
@@ -18294,7 +18294,7 @@ function is_default() {
|
|
|
18294
18294
|
localeError: error22()
|
|
18295
18295
|
};
|
|
18296
18296
|
}
|
|
18297
|
-
//
|
|
18297
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
18298
18298
|
var error23 = () => {
|
|
18299
18299
|
const Sizable = {
|
|
18300
18300
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -18402,7 +18402,7 @@ function it_default() {
|
|
|
18402
18402
|
localeError: error23()
|
|
18403
18403
|
};
|
|
18404
18404
|
}
|
|
18405
|
-
//
|
|
18405
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
18406
18406
|
var error24 = () => {
|
|
18407
18407
|
const Sizable = {
|
|
18408
18408
|
string: { unit: "文字", verb: "である" },
|
|
@@ -18509,7 +18509,7 @@ function ja_default() {
|
|
|
18509
18509
|
localeError: error24()
|
|
18510
18510
|
};
|
|
18511
18511
|
}
|
|
18512
|
-
//
|
|
18512
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
18513
18513
|
var error25 = () => {
|
|
18514
18514
|
const Sizable = {
|
|
18515
18515
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
@@ -18621,7 +18621,7 @@ function ka_default() {
|
|
|
18621
18621
|
localeError: error25()
|
|
18622
18622
|
};
|
|
18623
18623
|
}
|
|
18624
|
-
//
|
|
18624
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
18625
18625
|
var error26 = () => {
|
|
18626
18626
|
const Sizable = {
|
|
18627
18627
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
@@ -18732,11 +18732,11 @@ function km_default() {
|
|
|
18732
18732
|
};
|
|
18733
18733
|
}
|
|
18734
18734
|
|
|
18735
|
-
//
|
|
18735
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
18736
18736
|
function kh_default() {
|
|
18737
18737
|
return km_default();
|
|
18738
18738
|
}
|
|
18739
|
-
//
|
|
18739
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
18740
18740
|
var error27 = () => {
|
|
18741
18741
|
const Sizable = {
|
|
18742
18742
|
string: { unit: "문자", verb: "to have" },
|
|
@@ -18847,7 +18847,7 @@ function ko_default() {
|
|
|
18847
18847
|
localeError: error27()
|
|
18848
18848
|
};
|
|
18849
18849
|
}
|
|
18850
|
-
//
|
|
18850
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
18851
18851
|
var capitalizeFirstCharacter = (text) => {
|
|
18852
18852
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
18853
18853
|
};
|
|
@@ -19050,7 +19050,7 @@ function lt_default() {
|
|
|
19050
19050
|
localeError: error28()
|
|
19051
19051
|
};
|
|
19052
19052
|
}
|
|
19053
|
-
//
|
|
19053
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
19054
19054
|
var error29 = () => {
|
|
19055
19055
|
const Sizable = {
|
|
19056
19056
|
string: { unit: "знаци", verb: "да имаат" },
|
|
@@ -19159,7 +19159,7 @@ function mk_default() {
|
|
|
19159
19159
|
localeError: error29()
|
|
19160
19160
|
};
|
|
19161
19161
|
}
|
|
19162
|
-
//
|
|
19162
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
19163
19163
|
var error30 = () => {
|
|
19164
19164
|
const Sizable = {
|
|
19165
19165
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -19266,7 +19266,7 @@ function ms_default() {
|
|
|
19266
19266
|
localeError: error30()
|
|
19267
19267
|
};
|
|
19268
19268
|
}
|
|
19269
|
-
//
|
|
19269
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
19270
19270
|
var error31 = () => {
|
|
19271
19271
|
const Sizable = {
|
|
19272
19272
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -19376,7 +19376,7 @@ function nl_default() {
|
|
|
19376
19376
|
localeError: error31()
|
|
19377
19377
|
};
|
|
19378
19378
|
}
|
|
19379
|
-
//
|
|
19379
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
19380
19380
|
var error32 = () => {
|
|
19381
19381
|
const Sizable = {
|
|
19382
19382
|
string: { unit: "tegn", verb: "å ha" },
|
|
@@ -19484,7 +19484,7 @@ function no_default() {
|
|
|
19484
19484
|
localeError: error32()
|
|
19485
19485
|
};
|
|
19486
19486
|
}
|
|
19487
|
-
//
|
|
19487
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
19488
19488
|
var error33 = () => {
|
|
19489
19489
|
const Sizable = {
|
|
19490
19490
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
@@ -19593,7 +19593,7 @@ function ota_default() {
|
|
|
19593
19593
|
localeError: error33()
|
|
19594
19594
|
};
|
|
19595
19595
|
}
|
|
19596
|
-
//
|
|
19596
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
19597
19597
|
var error34 = () => {
|
|
19598
19598
|
const Sizable = {
|
|
19599
19599
|
string: { unit: "توکي", verb: "ولري" },
|
|
@@ -19707,7 +19707,7 @@ function ps_default() {
|
|
|
19707
19707
|
localeError: error34()
|
|
19708
19708
|
};
|
|
19709
19709
|
}
|
|
19710
|
-
//
|
|
19710
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
19711
19711
|
var error35 = () => {
|
|
19712
19712
|
const Sizable = {
|
|
19713
19713
|
string: { unit: "znaków", verb: "mieć" },
|
|
@@ -19816,7 +19816,7 @@ function pl_default() {
|
|
|
19816
19816
|
localeError: error35()
|
|
19817
19817
|
};
|
|
19818
19818
|
}
|
|
19819
|
-
//
|
|
19819
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
19820
19820
|
var error36 = () => {
|
|
19821
19821
|
const Sizable = {
|
|
19822
19822
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -19924,7 +19924,7 @@ function pt_default() {
|
|
|
19924
19924
|
localeError: error36()
|
|
19925
19925
|
};
|
|
19926
19926
|
}
|
|
19927
|
-
//
|
|
19927
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
19928
19928
|
var error37 = () => {
|
|
19929
19929
|
const Sizable = {
|
|
19930
19930
|
string: { unit: "caractere", verb: "să aibă" },
|
|
@@ -20043,7 +20043,7 @@ function ro_default() {
|
|
|
20043
20043
|
localeError: error37()
|
|
20044
20044
|
};
|
|
20045
20045
|
}
|
|
20046
|
-
//
|
|
20046
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
20047
20047
|
function getRussianPlural(count, one, few, many) {
|
|
20048
20048
|
const absCount = Math.abs(count);
|
|
20049
20049
|
const lastDigit = absCount % 10;
|
|
@@ -20199,7 +20199,7 @@ function ru_default() {
|
|
|
20199
20199
|
localeError: error38()
|
|
20200
20200
|
};
|
|
20201
20201
|
}
|
|
20202
|
-
//
|
|
20202
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
20203
20203
|
var error39 = () => {
|
|
20204
20204
|
const Sizable = {
|
|
20205
20205
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -20308,7 +20308,7 @@ function sl_default() {
|
|
|
20308
20308
|
localeError: error39()
|
|
20309
20309
|
};
|
|
20310
20310
|
}
|
|
20311
|
-
//
|
|
20311
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
20312
20312
|
var error40 = () => {
|
|
20313
20313
|
const Sizable = {
|
|
20314
20314
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -20418,7 +20418,7 @@ function sv_default() {
|
|
|
20418
20418
|
localeError: error40()
|
|
20419
20419
|
};
|
|
20420
20420
|
}
|
|
20421
|
-
//
|
|
20421
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
20422
20422
|
var error41 = () => {
|
|
20423
20423
|
const Sizable = {
|
|
20424
20424
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -20528,7 +20528,7 @@ function ta_default() {
|
|
|
20528
20528
|
localeError: error41()
|
|
20529
20529
|
};
|
|
20530
20530
|
}
|
|
20531
|
-
//
|
|
20531
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
20532
20532
|
var error42 = () => {
|
|
20533
20533
|
const Sizable = {
|
|
20534
20534
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
@@ -20638,7 +20638,7 @@ function th_default() {
|
|
|
20638
20638
|
localeError: error42()
|
|
20639
20639
|
};
|
|
20640
20640
|
}
|
|
20641
|
-
//
|
|
20641
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
20642
20642
|
var error43 = () => {
|
|
20643
20643
|
const Sizable = {
|
|
20644
20644
|
string: { unit: "karakter", verb: "olmalı" },
|
|
@@ -20743,7 +20743,7 @@ function tr_default() {
|
|
|
20743
20743
|
localeError: error43()
|
|
20744
20744
|
};
|
|
20745
20745
|
}
|
|
20746
|
-
//
|
|
20746
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
20747
20747
|
var error44 = () => {
|
|
20748
20748
|
const Sizable = {
|
|
20749
20749
|
string: { unit: "символів", verb: "матиме" },
|
|
@@ -20852,11 +20852,11 @@ function uk_default() {
|
|
|
20852
20852
|
};
|
|
20853
20853
|
}
|
|
20854
20854
|
|
|
20855
|
-
//
|
|
20855
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
20856
20856
|
function ua_default() {
|
|
20857
20857
|
return uk_default();
|
|
20858
20858
|
}
|
|
20859
|
-
//
|
|
20859
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
20860
20860
|
var error45 = () => {
|
|
20861
20861
|
const Sizable = {
|
|
20862
20862
|
string: { unit: "حروف", verb: "ہونا" },
|
|
@@ -20966,7 +20966,7 @@ function ur_default() {
|
|
|
20966
20966
|
localeError: error45()
|
|
20967
20967
|
};
|
|
20968
20968
|
}
|
|
20969
|
-
//
|
|
20969
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
20970
20970
|
var error46 = () => {
|
|
20971
20971
|
const Sizable = {
|
|
20972
20972
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
@@ -21076,7 +21076,7 @@ function uz_default() {
|
|
|
21076
21076
|
localeError: error46()
|
|
21077
21077
|
};
|
|
21078
21078
|
}
|
|
21079
|
-
//
|
|
21079
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
21080
21080
|
var error47 = () => {
|
|
21081
21081
|
const Sizable = {
|
|
21082
21082
|
string: { unit: "ký tự", verb: "có" },
|
|
@@ -21184,7 +21184,7 @@ function vi_default() {
|
|
|
21184
21184
|
localeError: error47()
|
|
21185
21185
|
};
|
|
21186
21186
|
}
|
|
21187
|
-
//
|
|
21187
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
21188
21188
|
var error48 = () => {
|
|
21189
21189
|
const Sizable = {
|
|
21190
21190
|
string: { unit: "字符", verb: "包含" },
|
|
@@ -21293,7 +21293,7 @@ function zh_CN_default() {
|
|
|
21293
21293
|
localeError: error48()
|
|
21294
21294
|
};
|
|
21295
21295
|
}
|
|
21296
|
-
//
|
|
21296
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
21297
21297
|
var error49 = () => {
|
|
21298
21298
|
const Sizable = {
|
|
21299
21299
|
string: { unit: "字元", verb: "擁有" },
|
|
@@ -21400,7 +21400,7 @@ function zh_TW_default() {
|
|
|
21400
21400
|
localeError: error49()
|
|
21401
21401
|
};
|
|
21402
21402
|
}
|
|
21403
|
-
//
|
|
21403
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
21404
21404
|
var error50 = () => {
|
|
21405
21405
|
const Sizable = {
|
|
21406
21406
|
string: { unit: "àmi", verb: "ní" },
|
|
@@ -21507,7 +21507,7 @@ function yo_default() {
|
|
|
21507
21507
|
localeError: error50()
|
|
21508
21508
|
};
|
|
21509
21509
|
}
|
|
21510
|
-
//
|
|
21510
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
21511
21511
|
var _a2;
|
|
21512
21512
|
var $output = Symbol("ZodOutput");
|
|
21513
21513
|
var $input = Symbol("ZodInput");
|
|
@@ -21557,7 +21557,7 @@ function registry() {
|
|
|
21557
21557
|
}
|
|
21558
21558
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
21559
21559
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
21560
|
-
//
|
|
21560
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
21561
21561
|
function _string(Class2, params) {
|
|
21562
21562
|
return new Class2({
|
|
21563
21563
|
type: "string",
|
|
@@ -22477,7 +22477,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
22477
22477
|
const inst = new Class2(def);
|
|
22478
22478
|
return inst;
|
|
22479
22479
|
}
|
|
22480
|
-
//
|
|
22480
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
22481
22481
|
function initializeContext(params) {
|
|
22482
22482
|
let target = params?.target ?? "draft-2020-12";
|
|
22483
22483
|
if (target === "draft-4")
|
|
@@ -22829,7 +22829,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
22829
22829
|
extractDefs(ctx, schema);
|
|
22830
22830
|
return finalize(ctx, schema);
|
|
22831
22831
|
};
|
|
22832
|
-
//
|
|
22832
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
22833
22833
|
var formatMap = {
|
|
22834
22834
|
guid: "uuid",
|
|
22835
22835
|
url: "uri",
|
|
@@ -23367,7 +23367,7 @@ function toJSONSchema(input, params) {
|
|
|
23367
23367
|
extractDefs(ctx, input);
|
|
23368
23368
|
return finalize(ctx, input);
|
|
23369
23369
|
}
|
|
23370
|
-
//
|
|
23370
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
23371
23371
|
class JSONSchemaGenerator {
|
|
23372
23372
|
get metadataRegistry() {
|
|
23373
23373
|
return this.ctx.metadataRegistry;
|
|
@@ -23426,9 +23426,9 @@ class JSONSchemaGenerator {
|
|
|
23426
23426
|
return plainResult;
|
|
23427
23427
|
}
|
|
23428
23428
|
}
|
|
23429
|
-
//
|
|
23429
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
23430
23430
|
var exports_json_schema = {};
|
|
23431
|
-
//
|
|
23431
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
|
|
23432
23432
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
23433
23433
|
if (!inst._zod)
|
|
23434
23434
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -23472,7 +23472,7 @@ function object(shape, params) {
|
|
|
23472
23472
|
};
|
|
23473
23473
|
return new ZodMiniObject(def);
|
|
23474
23474
|
}
|
|
23475
|
-
//
|
|
23475
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
23476
23476
|
function isZ4Schema(s) {
|
|
23477
23477
|
const schema = s;
|
|
23478
23478
|
return !!schema._zod;
|
|
@@ -23616,7 +23616,7 @@ function getLiteralValue(schema) {
|
|
|
23616
23616
|
return;
|
|
23617
23617
|
}
|
|
23618
23618
|
|
|
23619
|
-
//
|
|
23619
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
23620
23620
|
var exports_external = {};
|
|
23621
23621
|
__export(exports_external, {
|
|
23622
23622
|
xor: () => xor,
|
|
@@ -23859,7 +23859,7 @@ __export(exports_external, {
|
|
|
23859
23859
|
$brand: () => $brand
|
|
23860
23860
|
});
|
|
23861
23861
|
|
|
23862
|
-
//
|
|
23862
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
23863
23863
|
var exports_schemas2 = {};
|
|
23864
23864
|
__export(exports_schemas2, {
|
|
23865
23865
|
xor: () => xor,
|
|
@@ -24030,7 +24030,7 @@ __export(exports_schemas2, {
|
|
|
24030
24030
|
ZodAny: () => ZodAny2
|
|
24031
24031
|
});
|
|
24032
24032
|
|
|
24033
|
-
//
|
|
24033
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
24034
24034
|
var exports_checks2 = {};
|
|
24035
24035
|
__export(exports_checks2, {
|
|
24036
24036
|
uppercase: () => _uppercase,
|
|
@@ -24064,7 +24064,7 @@ __export(exports_checks2, {
|
|
|
24064
24064
|
endsWith: () => _endsWith
|
|
24065
24065
|
});
|
|
24066
24066
|
|
|
24067
|
-
//
|
|
24067
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
24068
24068
|
var exports_iso2 = {};
|
|
24069
24069
|
__export(exports_iso2, {
|
|
24070
24070
|
time: () => time2,
|
|
@@ -24105,7 +24105,7 @@ function duration2(params) {
|
|
|
24105
24105
|
return _isoDuration(ZodISODuration, params);
|
|
24106
24106
|
}
|
|
24107
24107
|
|
|
24108
|
-
//
|
|
24108
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
24109
24109
|
var initializer2 = (inst, issues) => {
|
|
24110
24110
|
$ZodError.init(inst, issues);
|
|
24111
24111
|
inst.name = "ZodError";
|
|
@@ -24140,7 +24140,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
|
24140
24140
|
Parent: Error
|
|
24141
24141
|
});
|
|
24142
24142
|
|
|
24143
|
-
//
|
|
24143
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
24144
24144
|
var parse4 = /* @__PURE__ */ _parse(ZodRealError);
|
|
24145
24145
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
24146
24146
|
var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -24154,7 +24154,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
24154
24154
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
24155
24155
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
24156
24156
|
|
|
24157
|
-
//
|
|
24157
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
24158
24158
|
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
24159
24159
|
function _installLazyMethods(inst, group, methods) {
|
|
24160
24160
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -25441,7 +25441,7 @@ function preprocess(fn, schema) {
|
|
|
25441
25441
|
out: schema
|
|
25442
25442
|
});
|
|
25443
25443
|
}
|
|
25444
|
-
//
|
|
25444
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
25445
25445
|
var ZodIssueCode2 = {
|
|
25446
25446
|
invalid_type: "invalid_type",
|
|
25447
25447
|
too_big: "too_big",
|
|
@@ -25465,7 +25465,7 @@ function getErrorMap2() {
|
|
|
25465
25465
|
}
|
|
25466
25466
|
var ZodFirstPartyTypeKind2;
|
|
25467
25467
|
(function(ZodFirstPartyTypeKind3) {})(ZodFirstPartyTypeKind2 || (ZodFirstPartyTypeKind2 = {}));
|
|
25468
|
-
//
|
|
25468
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
25469
25469
|
var z = {
|
|
25470
25470
|
...exports_schemas2,
|
|
25471
25471
|
...exports_checks2,
|
|
@@ -25932,7 +25932,7 @@ function fromJSONSchema(schema, params) {
|
|
|
25932
25932
|
};
|
|
25933
25933
|
return convertSchema(normalized, ctx);
|
|
25934
25934
|
}
|
|
25935
|
-
//
|
|
25935
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
25936
25936
|
var exports_coerce2 = {};
|
|
25937
25937
|
__export(exports_coerce2, {
|
|
25938
25938
|
string: () => string3,
|
|
@@ -25957,10 +25957,10 @@ function date4(params) {
|
|
|
25957
25957
|
return _coercedDate(ZodDate2, params);
|
|
25958
25958
|
}
|
|
25959
25959
|
|
|
25960
|
-
//
|
|
25960
|
+
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
25961
25961
|
config(en_default2());
|
|
25962
25962
|
|
|
25963
|
-
//
|
|
25963
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
25964
25964
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
25965
25965
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
25966
25966
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -26805,12 +26805,12 @@ class UrlElicitationRequiredError extends McpError {
|
|
|
26805
26805
|
}
|
|
26806
26806
|
}
|
|
26807
26807
|
|
|
26808
|
-
//
|
|
26808
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
26809
26809
|
function isTerminal(status) {
|
|
26810
26810
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
26811
26811
|
}
|
|
26812
26812
|
|
|
26813
|
-
//
|
|
26813
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
26814
26814
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
26815
26815
|
var defaultOptions = {
|
|
26816
26816
|
name: undefined,
|
|
@@ -26843,7 +26843,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
26843
26843
|
...defaultOptions,
|
|
26844
26844
|
...options
|
|
26845
26845
|
};
|
|
26846
|
-
//
|
|
26846
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
26847
26847
|
var getRefs = (options) => {
|
|
26848
26848
|
const _options = getDefaultOptions(options);
|
|
26849
26849
|
const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -26862,7 +26862,7 @@ var getRefs = (options) => {
|
|
|
26862
26862
|
]))
|
|
26863
26863
|
};
|
|
26864
26864
|
};
|
|
26865
|
-
//
|
|
26865
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
26866
26866
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
26867
26867
|
if (!refs?.errorMessages)
|
|
26868
26868
|
return;
|
|
@@ -26877,7 +26877,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
26877
26877
|
res[key] = value;
|
|
26878
26878
|
addErrorMessage(res, key, errorMessage, refs);
|
|
26879
26879
|
}
|
|
26880
|
-
//
|
|
26880
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
26881
26881
|
var getRelativePath = (pathA, pathB) => {
|
|
26882
26882
|
let i = 0;
|
|
26883
26883
|
for (;i < pathA.length && i < pathB.length; i++) {
|
|
@@ -26886,7 +26886,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
26886
26886
|
}
|
|
26887
26887
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
26888
26888
|
};
|
|
26889
|
-
//
|
|
26889
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
26890
26890
|
function parseAnyDef(refs) {
|
|
26891
26891
|
if (refs.target !== "openAi") {
|
|
26892
26892
|
return {};
|
|
@@ -26902,7 +26902,7 @@ function parseAnyDef(refs) {
|
|
|
26902
26902
|
};
|
|
26903
26903
|
}
|
|
26904
26904
|
|
|
26905
|
-
//
|
|
26905
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
26906
26906
|
function parseArrayDef(def, refs) {
|
|
26907
26907
|
const res = {
|
|
26908
26908
|
type: "array"
|
|
@@ -26926,7 +26926,7 @@ function parseArrayDef(def, refs) {
|
|
|
26926
26926
|
return res;
|
|
26927
26927
|
}
|
|
26928
26928
|
|
|
26929
|
-
//
|
|
26929
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
26930
26930
|
function parseBigintDef(def, refs) {
|
|
26931
26931
|
const res = {
|
|
26932
26932
|
type: "integer",
|
|
@@ -26972,24 +26972,24 @@ function parseBigintDef(def, refs) {
|
|
|
26972
26972
|
return res;
|
|
26973
26973
|
}
|
|
26974
26974
|
|
|
26975
|
-
//
|
|
26975
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
26976
26976
|
function parseBooleanDef() {
|
|
26977
26977
|
return {
|
|
26978
26978
|
type: "boolean"
|
|
26979
26979
|
};
|
|
26980
26980
|
}
|
|
26981
26981
|
|
|
26982
|
-
//
|
|
26982
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
26983
26983
|
function parseBrandedDef(_def, refs) {
|
|
26984
26984
|
return parseDef(_def.type._def, refs);
|
|
26985
26985
|
}
|
|
26986
26986
|
|
|
26987
|
-
//
|
|
26987
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
26988
26988
|
var parseCatchDef = (def, refs) => {
|
|
26989
26989
|
return parseDef(def.innerType._def, refs);
|
|
26990
26990
|
};
|
|
26991
26991
|
|
|
26992
|
-
//
|
|
26992
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
26993
26993
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
26994
26994
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
26995
26995
|
if (Array.isArray(strategy)) {
|
|
@@ -27034,7 +27034,7 @@ var integerDateParser = (def, refs) => {
|
|
|
27034
27034
|
return res;
|
|
27035
27035
|
};
|
|
27036
27036
|
|
|
27037
|
-
//
|
|
27037
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
27038
27038
|
function parseDefaultDef(_def, refs) {
|
|
27039
27039
|
return {
|
|
27040
27040
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -27042,12 +27042,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
27042
27042
|
};
|
|
27043
27043
|
}
|
|
27044
27044
|
|
|
27045
|
-
//
|
|
27045
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
27046
27046
|
function parseEffectsDef(_def, refs) {
|
|
27047
27047
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
27048
27048
|
}
|
|
27049
27049
|
|
|
27050
|
-
//
|
|
27050
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
27051
27051
|
function parseEnumDef(def) {
|
|
27052
27052
|
return {
|
|
27053
27053
|
type: "string",
|
|
@@ -27055,7 +27055,7 @@ function parseEnumDef(def) {
|
|
|
27055
27055
|
};
|
|
27056
27056
|
}
|
|
27057
27057
|
|
|
27058
|
-
//
|
|
27058
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
27059
27059
|
var isJsonSchema7AllOfType = (type) => {
|
|
27060
27060
|
if ("type" in type && type.type === "string")
|
|
27061
27061
|
return false;
|
|
@@ -27097,7 +27097,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
27097
27097
|
} : undefined;
|
|
27098
27098
|
}
|
|
27099
27099
|
|
|
27100
|
-
//
|
|
27100
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
27101
27101
|
function parseLiteralDef(def, refs) {
|
|
27102
27102
|
const parsedType2 = typeof def.value;
|
|
27103
27103
|
if (parsedType2 !== "bigint" && parsedType2 !== "number" && parsedType2 !== "boolean" && parsedType2 !== "string") {
|
|
@@ -27117,7 +27117,7 @@ function parseLiteralDef(def, refs) {
|
|
|
27117
27117
|
};
|
|
27118
27118
|
}
|
|
27119
27119
|
|
|
27120
|
-
//
|
|
27120
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
27121
27121
|
var emojiRegex2 = undefined;
|
|
27122
27122
|
var zodPatterns = {
|
|
27123
27123
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
@@ -27414,7 +27414,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
27414
27414
|
return pattern;
|
|
27415
27415
|
}
|
|
27416
27416
|
|
|
27417
|
-
//
|
|
27417
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
27418
27418
|
function parseRecordDef(def, refs) {
|
|
27419
27419
|
if (refs.target === "openAi") {
|
|
27420
27420
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -27466,7 +27466,7 @@ function parseRecordDef(def, refs) {
|
|
|
27466
27466
|
return schema;
|
|
27467
27467
|
}
|
|
27468
27468
|
|
|
27469
|
-
//
|
|
27469
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
27470
27470
|
function parseMapDef(def, refs) {
|
|
27471
27471
|
if (refs.mapStrategy === "record") {
|
|
27472
27472
|
return parseRecordDef(def, refs);
|
|
@@ -27491,7 +27491,7 @@ function parseMapDef(def, refs) {
|
|
|
27491
27491
|
};
|
|
27492
27492
|
}
|
|
27493
27493
|
|
|
27494
|
-
//
|
|
27494
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
27495
27495
|
function parseNativeEnumDef(def) {
|
|
27496
27496
|
const object3 = def.values;
|
|
27497
27497
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -27505,7 +27505,7 @@ function parseNativeEnumDef(def) {
|
|
|
27505
27505
|
};
|
|
27506
27506
|
}
|
|
27507
27507
|
|
|
27508
|
-
//
|
|
27508
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
27509
27509
|
function parseNeverDef(refs) {
|
|
27510
27510
|
return refs.target === "openAi" ? undefined : {
|
|
27511
27511
|
not: parseAnyDef({
|
|
@@ -27515,7 +27515,7 @@ function parseNeverDef(refs) {
|
|
|
27515
27515
|
};
|
|
27516
27516
|
}
|
|
27517
27517
|
|
|
27518
|
-
//
|
|
27518
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
27519
27519
|
function parseNullDef(refs) {
|
|
27520
27520
|
return refs.target === "openApi3" ? {
|
|
27521
27521
|
enum: ["null"],
|
|
@@ -27525,7 +27525,7 @@ function parseNullDef(refs) {
|
|
|
27525
27525
|
};
|
|
27526
27526
|
}
|
|
27527
27527
|
|
|
27528
|
-
//
|
|
27528
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
27529
27529
|
var primitiveMappings = {
|
|
27530
27530
|
ZodString: "string",
|
|
27531
27531
|
ZodNumber: "number",
|
|
@@ -27593,7 +27593,7 @@ var asAnyOf = (def, refs) => {
|
|
|
27593
27593
|
return anyOf.length ? { anyOf } : undefined;
|
|
27594
27594
|
};
|
|
27595
27595
|
|
|
27596
|
-
//
|
|
27596
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
27597
27597
|
function parseNullableDef(def, refs) {
|
|
27598
27598
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
27599
27599
|
if (refs.target === "openApi3") {
|
|
@@ -27625,7 +27625,7 @@ function parseNullableDef(def, refs) {
|
|
|
27625
27625
|
return base && { anyOf: [base, { type: "null" }] };
|
|
27626
27626
|
}
|
|
27627
27627
|
|
|
27628
|
-
//
|
|
27628
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
27629
27629
|
function parseNumberDef(def, refs) {
|
|
27630
27630
|
const res = {
|
|
27631
27631
|
type: "number"
|
|
@@ -27674,7 +27674,7 @@ function parseNumberDef(def, refs) {
|
|
|
27674
27674
|
return res;
|
|
27675
27675
|
}
|
|
27676
27676
|
|
|
27677
|
-
//
|
|
27677
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
27678
27678
|
function parseObjectDef(def, refs) {
|
|
27679
27679
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
27680
27680
|
const result = {
|
|
@@ -27744,7 +27744,7 @@ function safeIsOptional(schema) {
|
|
|
27744
27744
|
}
|
|
27745
27745
|
}
|
|
27746
27746
|
|
|
27747
|
-
//
|
|
27747
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
27748
27748
|
var parseOptionalDef = (def, refs) => {
|
|
27749
27749
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
27750
27750
|
return parseDef(def.innerType._def, refs);
|
|
@@ -27763,7 +27763,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
27763
27763
|
} : parseAnyDef(refs);
|
|
27764
27764
|
};
|
|
27765
27765
|
|
|
27766
|
-
//
|
|
27766
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
27767
27767
|
var parsePipelineDef = (def, refs) => {
|
|
27768
27768
|
if (refs.pipeStrategy === "input") {
|
|
27769
27769
|
return parseDef(def.in._def, refs);
|
|
@@ -27783,12 +27783,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
27783
27783
|
};
|
|
27784
27784
|
};
|
|
27785
27785
|
|
|
27786
|
-
//
|
|
27786
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
27787
27787
|
function parsePromiseDef(def, refs) {
|
|
27788
27788
|
return parseDef(def.type._def, refs);
|
|
27789
27789
|
}
|
|
27790
27790
|
|
|
27791
|
-
//
|
|
27791
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
27792
27792
|
function parseSetDef(def, refs) {
|
|
27793
27793
|
const items = parseDef(def.valueType._def, {
|
|
27794
27794
|
...refs,
|
|
@@ -27808,7 +27808,7 @@ function parseSetDef(def, refs) {
|
|
|
27808
27808
|
return schema;
|
|
27809
27809
|
}
|
|
27810
27810
|
|
|
27811
|
-
//
|
|
27811
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
27812
27812
|
function parseTupleDef(def, refs) {
|
|
27813
27813
|
if (def.rest) {
|
|
27814
27814
|
return {
|
|
@@ -27836,24 +27836,24 @@ function parseTupleDef(def, refs) {
|
|
|
27836
27836
|
}
|
|
27837
27837
|
}
|
|
27838
27838
|
|
|
27839
|
-
//
|
|
27839
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
27840
27840
|
function parseUndefinedDef(refs) {
|
|
27841
27841
|
return {
|
|
27842
27842
|
not: parseAnyDef(refs)
|
|
27843
27843
|
};
|
|
27844
27844
|
}
|
|
27845
27845
|
|
|
27846
|
-
//
|
|
27846
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
27847
27847
|
function parseUnknownDef(refs) {
|
|
27848
27848
|
return parseAnyDef(refs);
|
|
27849
27849
|
}
|
|
27850
27850
|
|
|
27851
|
-
//
|
|
27851
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
27852
27852
|
var parseReadonlyDef = (def, refs) => {
|
|
27853
27853
|
return parseDef(def.innerType._def, refs);
|
|
27854
27854
|
};
|
|
27855
27855
|
|
|
27856
|
-
//
|
|
27856
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
27857
27857
|
var selectParser = (def, typeName, refs) => {
|
|
27858
27858
|
switch (typeName) {
|
|
27859
27859
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -27931,7 +27931,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
27931
27931
|
}
|
|
27932
27932
|
};
|
|
27933
27933
|
|
|
27934
|
-
//
|
|
27934
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
27935
27935
|
function parseDef(def, refs, forceResolution = false) {
|
|
27936
27936
|
const seenItem = refs.seen.get(def);
|
|
27937
27937
|
if (refs.override) {
|
|
@@ -27986,7 +27986,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
27986
27986
|
}
|
|
27987
27987
|
return jsonSchema;
|
|
27988
27988
|
};
|
|
27989
|
-
//
|
|
27989
|
+
// ../../../node_modules/.bun/zod-to-json-schema@3.25.2+68a1e3a0c4588df3/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
27990
27990
|
var zodToJsonSchema = (schema, options) => {
|
|
27991
27991
|
const refs = getRefs(options);
|
|
27992
27992
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -28046,7 +28046,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
28046
28046
|
}
|
|
28047
28047
|
return combined;
|
|
28048
28048
|
};
|
|
28049
|
-
//
|
|
28049
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
28050
28050
|
function mapMiniTarget(t) {
|
|
28051
28051
|
if (!t)
|
|
28052
28052
|
return "draft-7";
|
|
@@ -28088,7 +28088,7 @@ function parseWithCompat(schema, data) {
|
|
|
28088
28088
|
return result.data;
|
|
28089
28089
|
}
|
|
28090
28090
|
|
|
28091
|
-
//
|
|
28091
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
28092
28092
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
28093
28093
|
|
|
28094
28094
|
class Protocol {
|
|
@@ -28929,7 +28929,7 @@ function mergeCapabilities(base, additional) {
|
|
|
28929
28929
|
return result;
|
|
28930
28930
|
}
|
|
28931
28931
|
|
|
28932
|
-
//
|
|
28932
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
28933
28933
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
28934
28934
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
28935
28935
|
function createDefaultAjvInstance() {
|
|
@@ -28969,7 +28969,7 @@ class AjvJsonSchemaValidator {
|
|
|
28969
28969
|
}
|
|
28970
28970
|
}
|
|
28971
28971
|
|
|
28972
|
-
//
|
|
28972
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
28973
28973
|
class ExperimentalServerTasks {
|
|
28974
28974
|
constructor(_server) {
|
|
28975
28975
|
this._server = _server;
|
|
@@ -29047,7 +29047,7 @@ class ExperimentalServerTasks {
|
|
|
29047
29047
|
}
|
|
29048
29048
|
}
|
|
29049
29049
|
|
|
29050
|
-
//
|
|
29050
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
29051
29051
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
29052
29052
|
if (!requests) {
|
|
29053
29053
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -29082,7 +29082,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
29082
29082
|
}
|
|
29083
29083
|
}
|
|
29084
29084
|
|
|
29085
|
-
//
|
|
29085
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
29086
29086
|
class Server extends Protocol {
|
|
29087
29087
|
constructor(_serverInfo, options) {
|
|
29088
29088
|
super(options);
|
|
@@ -29415,7 +29415,7 @@ class Server extends Protocol {
|
|
|
29415
29415
|
}
|
|
29416
29416
|
}
|
|
29417
29417
|
|
|
29418
|
-
//
|
|
29418
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
29419
29419
|
var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
|
|
29420
29420
|
function isCompletable(schema) {
|
|
29421
29421
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
@@ -29429,7 +29429,7 @@ var McpZodTypeKind;
|
|
|
29429
29429
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
29430
29430
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
29431
29431
|
|
|
29432
|
-
//
|
|
29432
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
29433
29433
|
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
29434
29434
|
function validateToolName(name) {
|
|
29435
29435
|
const warnings = [];
|
|
@@ -29487,7 +29487,7 @@ function validateAndWarnToolName(name) {
|
|
|
29487
29487
|
return result.isValid;
|
|
29488
29488
|
}
|
|
29489
29489
|
|
|
29490
|
-
//
|
|
29490
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
29491
29491
|
class ExperimentalMcpServerTasks {
|
|
29492
29492
|
constructor(_mcpServer) {
|
|
29493
29493
|
this._mcpServer = _mcpServer;
|
|
@@ -29501,7 +29501,7 @@ class ExperimentalMcpServerTasks {
|
|
|
29501
29501
|
return mcpServerInternal._createRegisteredTool(name, config2.title, config2.description, config2.inputSchema, config2.outputSchema, config2.annotations, execution, config2._meta, handler);
|
|
29502
29502
|
}
|
|
29503
29503
|
}
|
|
29504
|
-
//
|
|
29504
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
29505
29505
|
class McpServer {
|
|
29506
29506
|
constructor(serverInfo, options) {
|
|
29507
29507
|
this._registeredResources = {};
|
|
@@ -30227,10 +30227,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
30227
30227
|
}
|
|
30228
30228
|
};
|
|
30229
30229
|
|
|
30230
|
-
//
|
|
30230
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
30231
30231
|
import process3 from "node:process";
|
|
30232
30232
|
|
|
30233
|
-
//
|
|
30233
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
30234
30234
|
class ReadBuffer {
|
|
30235
30235
|
append(chunk) {
|
|
30236
30236
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -30260,7 +30260,7 @@ function serializeMessage(message) {
|
|
|
30260
30260
|
`;
|
|
30261
30261
|
}
|
|
30262
30262
|
|
|
30263
|
-
//
|
|
30263
|
+
// ../../../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
30264
30264
|
class StdioServerTransport {
|
|
30265
30265
|
constructor(_stdin = process3.stdin, _stdout = process3.stdout) {
|
|
30266
30266
|
this._stdin = _stdin;
|
|
@@ -30399,8 +30399,8 @@ class CdpConnection {
|
|
|
30399
30399
|
this.target = target;
|
|
30400
30400
|
this.onEvent = onEvent;
|
|
30401
30401
|
ws.addEventListener("message", (event) => this.handleMessage(event));
|
|
30402
|
-
ws.addEventListener("close", () => this.handleClose(
|
|
30403
|
-
ws.addEventListener("error", () => this.handleClose(
|
|
30402
|
+
ws.addEventListener("close", () => this.handleClose(`connection closed`));
|
|
30403
|
+
ws.addEventListener("error", () => this.handleClose(`connection error`));
|
|
30404
30404
|
}
|
|
30405
30405
|
static async open(cfg, target, onEvent) {
|
|
30406
30406
|
const ws = new WebSocket(target.wsUrl);
|
|
@@ -30427,7 +30427,7 @@ class CdpConnection {
|
|
|
30427
30427
|
}
|
|
30428
30428
|
call(method, params) {
|
|
30429
30429
|
if (!this.isOpen) {
|
|
30430
|
-
return Promise.reject(new CdpError(
|
|
30430
|
+
return Promise.reject(new CdpError(`CDP connection is not open`));
|
|
30431
30431
|
}
|
|
30432
30432
|
const id = this.nextId++;
|
|
30433
30433
|
return new Promise((resolve, reject) => {
|
|
@@ -30453,7 +30453,7 @@ class CdpConnection {
|
|
|
30453
30453
|
this.enabledDomains.add(domain2);
|
|
30454
30454
|
}
|
|
30455
30455
|
close() {
|
|
30456
|
-
this.handleClose(
|
|
30456
|
+
this.handleClose(`closed by client`);
|
|
30457
30457
|
try {
|
|
30458
30458
|
this.ws.close();
|
|
30459
30459
|
} catch {}
|
|
@@ -30633,7 +30633,7 @@ function describeRemoteObject(obj) {
|
|
|
30633
30633
|
}
|
|
30634
30634
|
function formatException(details) {
|
|
30635
30635
|
const exception = details?.exception;
|
|
30636
|
-
const desc = exception?.description ?? exception?.value ?? details?.text ??
|
|
30636
|
+
const desc = exception?.description ?? exception?.value ?? details?.text ?? `unknown error`;
|
|
30637
30637
|
return typeof desc == "string" ? desc : JSON.stringify(desc);
|
|
30638
30638
|
}
|
|
30639
30639
|
function valToStr(value) {
|
|
@@ -30666,12 +30666,15 @@ class DebuggerSession {
|
|
|
30666
30666
|
nextBpId = 1;
|
|
30667
30667
|
pausedSeq = 0;
|
|
30668
30668
|
client;
|
|
30669
|
-
constructor(client) {
|
|
30669
|
+
constructor(client, reloads) {
|
|
30670
30670
|
this.client = client;
|
|
30671
30671
|
client.onConnect((conn) => this.onConnect(conn));
|
|
30672
30672
|
client.onEvent((method, params) => {
|
|
30673
30673
|
this.handle(method, params);
|
|
30674
30674
|
});
|
|
30675
|
+
reloads.onReload(() => {
|
|
30676
|
+
this.scripts.clear();
|
|
30677
|
+
});
|
|
30675
30678
|
}
|
|
30676
30679
|
async status(setPause) {
|
|
30677
30680
|
try {
|
|
@@ -30817,7 +30820,7 @@ class DebuggerSession {
|
|
|
30817
30820
|
try {
|
|
30818
30821
|
await this.ensureReady();
|
|
30819
30822
|
if (!this.paused) {
|
|
30820
|
-
return text(
|
|
30823
|
+
return text(`Not paused (the UI is running). Set a breakpoint or use game_debug_step pause.`);
|
|
30821
30824
|
}
|
|
30822
30825
|
const frames = [];
|
|
30823
30826
|
for (const [index, frame] of this.paused.callFrames.entries()) {
|
|
@@ -30886,7 +30889,7 @@ class DebuggerSession {
|
|
|
30886
30889
|
return text(paused ? `Paused at ${this.topLocation()}.` : `Pause requested; nothing executed within ${PAUSE_WAIT_MS}ms (UI idle).`);
|
|
30887
30890
|
}
|
|
30888
30891
|
if (!this.paused) {
|
|
30889
|
-
return errorText(
|
|
30892
|
+
return errorText(`Not paused. Set a breakpoint and trigger it, or use action 'pause' first.`);
|
|
30890
30893
|
}
|
|
30891
30894
|
if (action == "resume") {
|
|
30892
30895
|
await this.client.call("Debugger.resume");
|
|
@@ -30894,7 +30897,7 @@ class DebuggerSession {
|
|
|
30894
30897
|
while (Date.now() < deadline && this.paused) {
|
|
30895
30898
|
await sleep(POLL_INTERVAL_MS);
|
|
30896
30899
|
}
|
|
30897
|
-
return text(
|
|
30900
|
+
return text(`Resumed (UI unfrozen).`);
|
|
30898
30901
|
}
|
|
30899
30902
|
const cdpMethod = { over: "stepOver", into: "stepInto", out: "stepOut" }[action];
|
|
30900
30903
|
const before = this.pausedSeq;
|
|
@@ -31002,204 +31005,15 @@ class DebuggerSession {
|
|
|
31002
31005
|
// src/tools.ts
|
|
31003
31006
|
var import_common_tags3 = __toESM(require_lib(), 1);
|
|
31004
31007
|
import { setTimeout as sleep2 } from "node:timers/promises";
|
|
31005
|
-
var collectDomFn = (sel, all, maxHtml) => {
|
|
31006
|
-
const matches = document.querySelectorAll(sel);
|
|
31007
|
-
const first = matches.item(0);
|
|
31008
|
-
const chosen = all ? Array.from(matches) : first ? [first] : [];
|
|
31009
|
-
const describe3 = (el) => {
|
|
31010
|
-
const rect = el.getBoundingClientRect();
|
|
31011
|
-
const attributes = {};
|
|
31012
|
-
for (const attr of Array.from(el.attributes)) {
|
|
31013
|
-
attributes[attr.name] = attr.value;
|
|
31014
|
-
}
|
|
31015
|
-
const classAttr = el.getAttribute("class");
|
|
31016
|
-
let html = el.outerHTML || "";
|
|
31017
|
-
const truncated = html.length > maxHtml;
|
|
31018
|
-
if (truncated) {
|
|
31019
|
-
html = html.slice(0, maxHtml);
|
|
31020
|
-
}
|
|
31021
|
-
return {
|
|
31022
|
-
tagName: el.tagName ? el.tagName.toLowerCase() : null,
|
|
31023
|
-
id: el.id || null,
|
|
31024
|
-
classes: classAttr != null && classAttr.length > 0 ? classAttr : null,
|
|
31025
|
-
rect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height },
|
|
31026
|
-
attributes,
|
|
31027
|
-
outerHTML: html,
|
|
31028
|
-
truncated
|
|
31029
|
-
};
|
|
31030
|
-
};
|
|
31031
|
-
return { count: matches.length, elements: chosen.map((el) => describe3(el)) };
|
|
31032
|
-
};
|
|
31033
|
-
var clickFn = (sel, index) => {
|
|
31034
|
-
const nodes = document.querySelectorAll(sel);
|
|
31035
|
-
if (nodes.length == 0) {
|
|
31036
|
-
return { found: false, count: 0, fired: [] };
|
|
31037
|
-
}
|
|
31038
|
-
const el = nodes[index];
|
|
31039
|
-
if (!el) {
|
|
31040
|
-
return { found: false, count: nodes.length, fired: [] };
|
|
31041
|
-
}
|
|
31042
|
-
const rect = el.getBoundingClientRect();
|
|
31043
|
-
const cx = rect.x + rect.width / 2;
|
|
31044
|
-
const cy = rect.y + rect.height / 2;
|
|
31045
|
-
const base = {
|
|
31046
|
-
bubbles: true,
|
|
31047
|
-
cancelable: true,
|
|
31048
|
-
view: window,
|
|
31049
|
-
button: 0,
|
|
31050
|
-
clientX: cx,
|
|
31051
|
-
clientY: cy
|
|
31052
|
-
};
|
|
31053
|
-
const Pointer = typeof PointerEvent == "function" ? PointerEvent : MouseEvent;
|
|
31054
|
-
const fired = [];
|
|
31055
|
-
const fire = (Ctor, type, extra) => {
|
|
31056
|
-
try {
|
|
31057
|
-
el.dispatchEvent(new Ctor(type, { ...base, ...extra }));
|
|
31058
|
-
fired.push(type);
|
|
31059
|
-
} catch {}
|
|
31060
|
-
};
|
|
31061
|
-
fire(Pointer, "pointerdown", { pointerId: 1, isPrimary: true });
|
|
31062
|
-
fire(MouseEvent, "mousedown");
|
|
31063
|
-
fire(Pointer, "pointerup", { pointerId: 1, isPrimary: true });
|
|
31064
|
-
fire(MouseEvent, "mouseup");
|
|
31065
|
-
fire(MouseEvent, "click");
|
|
31066
|
-
return { found: true, count: nodes.length, x: cx, y: cy, fired };
|
|
31067
|
-
};
|
|
31068
|
-
var waitCheckFn = (sel, visible) => {
|
|
31069
|
-
const el = document.querySelector(sel);
|
|
31070
|
-
if (!el) {
|
|
31071
|
-
return false;
|
|
31072
|
-
}
|
|
31073
|
-
if (!visible) {
|
|
31074
|
-
return true;
|
|
31075
|
-
}
|
|
31076
|
-
const rect = el.getBoundingClientRect();
|
|
31077
|
-
return rect.width > 0 && rect.height > 0;
|
|
31078
|
-
};
|
|
31079
|
-
var fillFn = (sel, value) => {
|
|
31080
|
-
const el = document.querySelector(sel);
|
|
31081
|
-
if (!el) {
|
|
31082
|
-
return { found: false };
|
|
31083
|
-
}
|
|
31084
|
-
try {
|
|
31085
|
-
el.focus();
|
|
31086
|
-
} catch {}
|
|
31087
|
-
const tag = (el.tagName || "").toLowerCase();
|
|
31088
|
-
if (el.isContentEditable) {
|
|
31089
|
-
el.textContent = value;
|
|
31090
|
-
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
31091
|
-
el.dispatchEvent(new Event("change", { bubbles: true }));
|
|
31092
|
-
return { found: true, mode: "contenteditable", value: el.textContent ?? "" };
|
|
31093
|
-
}
|
|
31094
|
-
const field = el;
|
|
31095
|
-
const proto = tag == "textarea" ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype;
|
|
31096
|
-
const setter = Object.getOwnPropertyDescriptor(proto, "value")?.set;
|
|
31097
|
-
if (setter) {
|
|
31098
|
-
setter.call(el, value);
|
|
31099
|
-
} else {
|
|
31100
|
-
field.value = value;
|
|
31101
|
-
}
|
|
31102
|
-
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
31103
|
-
el.dispatchEvent(new Event("change", { bubbles: true }));
|
|
31104
|
-
return { found: true, mode: tag || "input", value: field.value };
|
|
31105
|
-
};
|
|
31106
|
-
var typeFn = (sel, textToType) => {
|
|
31107
|
-
const el = document.querySelector(sel);
|
|
31108
|
-
if (!el) {
|
|
31109
|
-
return { found: false, typed: 0 };
|
|
31110
|
-
}
|
|
31111
|
-
try {
|
|
31112
|
-
el.focus();
|
|
31113
|
-
} catch {}
|
|
31114
|
-
const tag = (el.tagName || "").toLowerCase();
|
|
31115
|
-
const editable = el.isContentEditable;
|
|
31116
|
-
const field = el;
|
|
31117
|
-
const proto = tag == "textarea" ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype;
|
|
31118
|
-
const setter = Object.getOwnPropertyDescriptor(proto, "value")?.set;
|
|
31119
|
-
const current = () => {
|
|
31120
|
-
if (editable) {
|
|
31121
|
-
return el.textContent ?? "";
|
|
31122
|
-
}
|
|
31123
|
-
return field.value || "";
|
|
31124
|
-
};
|
|
31125
|
-
const setValue = (next) => {
|
|
31126
|
-
if (editable) {
|
|
31127
|
-
el.textContent = next;
|
|
31128
|
-
} else if (setter) {
|
|
31129
|
-
setter.call(el, next);
|
|
31130
|
-
} else {
|
|
31131
|
-
field.value = next;
|
|
31132
|
-
}
|
|
31133
|
-
};
|
|
31134
|
-
let typed = 0;
|
|
31135
|
-
for (const ch of textToType) {
|
|
31136
|
-
const opts = {
|
|
31137
|
-
bubbles: true,
|
|
31138
|
-
cancelable: true,
|
|
31139
|
-
key: ch,
|
|
31140
|
-
view: window
|
|
31141
|
-
};
|
|
31142
|
-
try {
|
|
31143
|
-
el.dispatchEvent(new KeyboardEvent("keydown", opts));
|
|
31144
|
-
} catch {}
|
|
31145
|
-
setValue(current() + ch);
|
|
31146
|
-
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
31147
|
-
try {
|
|
31148
|
-
el.dispatchEvent(new KeyboardEvent("keyup", opts));
|
|
31149
|
-
} catch {}
|
|
31150
|
-
typed++;
|
|
31151
|
-
}
|
|
31152
|
-
el.dispatchEvent(new Event("change", { bubbles: true }));
|
|
31153
|
-
return { found: true, typed, value: current() };
|
|
31154
|
-
};
|
|
31155
|
-
var hoverFn = (sel) => {
|
|
31156
|
-
const el = document.querySelector(sel);
|
|
31157
|
-
if (!el) {
|
|
31158
|
-
return { found: false };
|
|
31159
|
-
}
|
|
31160
|
-
const rect = el.getBoundingClientRect();
|
|
31161
|
-
const cx = rect.x + rect.width / 2;
|
|
31162
|
-
const cy = rect.y + rect.height / 2;
|
|
31163
|
-
const base = {
|
|
31164
|
-
bubbles: true,
|
|
31165
|
-
cancelable: true,
|
|
31166
|
-
view: window,
|
|
31167
|
-
clientX: cx,
|
|
31168
|
-
clientY: cy
|
|
31169
|
-
};
|
|
31170
|
-
const noBubble = { ...base, bubbles: false };
|
|
31171
|
-
const fired = [];
|
|
31172
|
-
const fire = (type, init) => {
|
|
31173
|
-
try {
|
|
31174
|
-
el.dispatchEvent(new MouseEvent(type, init));
|
|
31175
|
-
fired.push(type);
|
|
31176
|
-
} catch {}
|
|
31177
|
-
};
|
|
31178
|
-
fire("pointerover", base);
|
|
31179
|
-
fire("mouseover", base);
|
|
31180
|
-
fire("pointerenter", noBubble);
|
|
31181
|
-
fire("mouseenter", noBubble);
|
|
31182
|
-
fire("mousemove", base);
|
|
31183
|
-
return { found: true, x: cx, y: cy, fired };
|
|
31184
|
-
};
|
|
31185
|
-
var rectFn = (sel) => {
|
|
31186
|
-
const el = document.querySelector(sel);
|
|
31187
|
-
if (!el) {
|
|
31188
|
-
return { found: false };
|
|
31189
|
-
}
|
|
31190
|
-
const rect = el.getBoundingClientRect();
|
|
31191
|
-
return { found: true, x: rect.x, y: rect.y, width: rect.width, height: rect.height };
|
|
31192
|
-
};
|
|
31193
|
-
function callPageFn(fn, ...args) {
|
|
31194
|
-
const serialisedArgs = args.map((arg) => JSON.stringify(arg)).join(", ");
|
|
31195
|
-
return `(${fn.toString()})(${serialisedArgs})`;
|
|
31196
|
-
}
|
|
31197
31008
|
var POLL_INTERVAL_MS2 = 150;
|
|
31198
31009
|
var MAX_WAIT_MS = 60000;
|
|
31199
31010
|
var DEFAULT_WAIT_TIMEOUT_MS = 8000;
|
|
31011
|
+
var DEFAULT_RELOAD_WAIT_TIMEOUT_MS = 30000;
|
|
31012
|
+
var DEFAULT_QUIESCENT_MS = 1000;
|
|
31200
31013
|
var DEFAULT_JPEG_QUALITY = 80;
|
|
31201
31014
|
var DEFAULT_CONSOLE_LIMIT = 50;
|
|
31202
|
-
|
|
31015
|
+
var DEFAULT_FIND_LIMIT = 20;
|
|
31016
|
+
async function gameStatus(client, reloads) {
|
|
31203
31017
|
const { host, port } = client.config;
|
|
31204
31018
|
try {
|
|
31205
31019
|
const target = await client.discover();
|
|
@@ -31213,12 +31027,25 @@ async function gameStatus(client) {
|
|
|
31213
31027
|
protocol = versionInfo["Protocol-Version"];
|
|
31214
31028
|
}
|
|
31215
31029
|
} catch {}
|
|
31030
|
+
let tracking = false;
|
|
31031
|
+
try {
|
|
31032
|
+
await client.connection();
|
|
31033
|
+
tracking = true;
|
|
31034
|
+
} catch {}
|
|
31035
|
+
const { lastReloadAt } = reloads;
|
|
31216
31036
|
return text(JSON.stringify({
|
|
31217
31037
|
reachable: true,
|
|
31218
31038
|
endpoint: `http://${host}:${port}`,
|
|
31219
31039
|
target: { id: target.id, url: target.url, title: target.title, wsUrl: target.wsUrl },
|
|
31220
31040
|
browser,
|
|
31221
|
-
cdpProtocol: protocol
|
|
31041
|
+
cdpProtocol: protocol,
|
|
31042
|
+
reloads: tracking ? {
|
|
31043
|
+
tracking: true,
|
|
31044
|
+
count: reloads.count,
|
|
31045
|
+
lastReloadAt: lastReloadAt == null ? null : new Date(lastReloadAt).toISOString(),
|
|
31046
|
+
lastReloadAgoMs: lastReloadAt == null ? null : Date.now() - lastReloadAt,
|
|
31047
|
+
contextUniqueId: reloads.contextUniqueId ?? null
|
|
31048
|
+
} : { tracking: false }
|
|
31222
31049
|
}, null, 2));
|
|
31223
31050
|
} catch (error51) {
|
|
31224
31051
|
return text(JSON.stringify({
|
|
@@ -31248,36 +31075,45 @@ async function gameEval(client, expression, awaitPromise = false) {
|
|
|
31248
31075
|
return toErrorResult(error51);
|
|
31249
31076
|
}
|
|
31250
31077
|
}
|
|
31251
|
-
async function gameScreenshot(client,
|
|
31078
|
+
async function gameScreenshot(client, options = {}) {
|
|
31079
|
+
const { format = "jpeg", quality, selector, index = 0 } = options;
|
|
31252
31080
|
try {
|
|
31253
31081
|
await client.ensureDomain("Page");
|
|
31254
31082
|
const params = { format };
|
|
31255
31083
|
if (format == "jpeg") {
|
|
31256
31084
|
params.quality = quality ?? DEFAULT_JPEG_QUALITY;
|
|
31257
31085
|
}
|
|
31086
|
+
let caption;
|
|
31258
31087
|
if (selector) {
|
|
31259
31088
|
const rectRes = await client.call("Runtime.evaluate", {
|
|
31260
|
-
expression: callPageFn(rectFn, selector),
|
|
31089
|
+
expression: callPageFn(rectFn, selector, index),
|
|
31261
31090
|
returnByValue: true
|
|
31262
31091
|
});
|
|
31263
31092
|
const rect = rectRes.result.value;
|
|
31264
31093
|
if (!rect?.found) {
|
|
31265
|
-
return errorText(`
|
|
31094
|
+
return errorText(import_common_tags3.oneLine`
|
|
31095
|
+
No element matched ${JSON.stringify(selector)} for game_screenshot at index ${index}
|
|
31096
|
+
(matches found: ${rect?.count ?? 0}).
|
|
31097
|
+
`);
|
|
31266
31098
|
}
|
|
31267
31099
|
if (!(rect.width > 0 && rect.height > 0)) {
|
|
31268
31100
|
return errorText(`Element ${JSON.stringify(selector)} has a zero-size box; nothing to capture.`);
|
|
31269
31101
|
}
|
|
31270
31102
|
params.clip = { x: rect.x, y: rect.y, width: rect.width, height: rect.height, scale: 1 };
|
|
31103
|
+
caption = import_common_tags3.oneLine`
|
|
31104
|
+
Clipped to ${JSON.stringify(selector)} [index ${index}]. Matches: ${rect.count}.
|
|
31105
|
+
`;
|
|
31271
31106
|
}
|
|
31272
31107
|
const res = await client.call("Page.captureScreenshot", params);
|
|
31273
31108
|
if (!res?.data) {
|
|
31274
|
-
return errorText(
|
|
31109
|
+
return errorText(`Page.captureScreenshot returned no image data.`);
|
|
31275
31110
|
}
|
|
31276
|
-
|
|
31277
|
-
|
|
31278
|
-
|
|
31279
|
-
|
|
31111
|
+
const image = {
|
|
31112
|
+
type: "image",
|
|
31113
|
+
data: res.data,
|
|
31114
|
+
mimeType: format == "jpeg" ? "image/jpeg" : "image/png"
|
|
31280
31115
|
};
|
|
31116
|
+
return { content: caption ? [{ type: "text", text: caption }, image] : [image] };
|
|
31281
31117
|
} catch (error51) {
|
|
31282
31118
|
return toErrorResult(error51);
|
|
31283
31119
|
}
|
|
@@ -31300,6 +31136,44 @@ async function gameDom(client, selector, all = false, maxHtml = 4000) {
|
|
|
31300
31136
|
return toErrorResult(error51);
|
|
31301
31137
|
}
|
|
31302
31138
|
}
|
|
31139
|
+
async function gameFind(client, options) {
|
|
31140
|
+
const {
|
|
31141
|
+
text: needle,
|
|
31142
|
+
match = "contains",
|
|
31143
|
+
caseSensitive = false,
|
|
31144
|
+
selector = "*",
|
|
31145
|
+
deepest = true,
|
|
31146
|
+
tag = false,
|
|
31147
|
+
limit = DEFAULT_FIND_LIMIT
|
|
31148
|
+
} = options;
|
|
31149
|
+
try {
|
|
31150
|
+
const res = await client.call("Runtime.evaluate", {
|
|
31151
|
+
expression: callPageFn(findFn, {
|
|
31152
|
+
sel: selector,
|
|
31153
|
+
needle,
|
|
31154
|
+
mode: match,
|
|
31155
|
+
caseSensitive,
|
|
31156
|
+
deepest,
|
|
31157
|
+
tag,
|
|
31158
|
+
limit
|
|
31159
|
+
}),
|
|
31160
|
+
returnByValue: true
|
|
31161
|
+
});
|
|
31162
|
+
if (res.exceptionDetails) {
|
|
31163
|
+
return errorText(`Find failed: ${formatException(res.exceptionDetails)}`);
|
|
31164
|
+
}
|
|
31165
|
+
const value = res.result.value;
|
|
31166
|
+
if (!value) {
|
|
31167
|
+
return errorText(`game_find returned no result for selector ${JSON.stringify(selector)}.`);
|
|
31168
|
+
}
|
|
31169
|
+
if ("error" in value) {
|
|
31170
|
+
return errorText(`game_find: ${value.error}`);
|
|
31171
|
+
}
|
|
31172
|
+
return text(JSON.stringify({ selector, match, ...value }, null, 2));
|
|
31173
|
+
} catch (error51) {
|
|
31174
|
+
return toErrorResult(error51);
|
|
31175
|
+
}
|
|
31176
|
+
}
|
|
31303
31177
|
async function gameClick(client, selector, index = 0) {
|
|
31304
31178
|
try {
|
|
31305
31179
|
const res = await client.call("Runtime.evaluate", {
|
|
@@ -31325,18 +31199,74 @@ async function gameClick(client, selector, index = 0) {
|
|
|
31325
31199
|
return toErrorResult(error51);
|
|
31326
31200
|
}
|
|
31327
31201
|
}
|
|
31328
|
-
async function gameWait(client, options) {
|
|
31329
|
-
const {
|
|
31330
|
-
|
|
31331
|
-
|
|
31202
|
+
async function gameWait(client, reloads, options) {
|
|
31203
|
+
const {
|
|
31204
|
+
selector,
|
|
31205
|
+
predicate,
|
|
31206
|
+
reload = false,
|
|
31207
|
+
sinceReloads,
|
|
31208
|
+
quiescentMs = DEFAULT_QUIESCENT_MS,
|
|
31209
|
+
visible = false
|
|
31210
|
+
} = options;
|
|
31211
|
+
if (!reload && !selector && !predicate) {
|
|
31212
|
+
return errorText(`game_wait needs at least one of 'reload', 'selector', or 'predicate'.`);
|
|
31332
31213
|
}
|
|
31214
|
+
if (selector && predicate) {
|
|
31215
|
+
return errorText(`game_wait takes either 'selector' or 'predicate', not both.`);
|
|
31216
|
+
}
|
|
31217
|
+
const timeoutMs = options.timeoutMs ?? (reload ? DEFAULT_RELOAD_WAIT_TIMEOUT_MS : DEFAULT_WAIT_TIMEOUT_MS);
|
|
31333
31218
|
const budget = Math.min(Math.max(timeoutMs, 0), MAX_WAIT_MS);
|
|
31334
|
-
const deadline = Date.now() + budget;
|
|
31335
31219
|
const start = Date.now();
|
|
31336
|
-
const
|
|
31337
|
-
let lastError;
|
|
31220
|
+
const deadline = start + budget;
|
|
31338
31221
|
try {
|
|
31339
|
-
|
|
31222
|
+
if (reload) {
|
|
31223
|
+
const failed = await waitForReload();
|
|
31224
|
+
if (failed) {
|
|
31225
|
+
return failed;
|
|
31226
|
+
}
|
|
31227
|
+
if (!selector && !predicate) {
|
|
31228
|
+
return text(`Reload observed after ${Date.now() - start}ms (reload count: ${reloads.count}).`);
|
|
31229
|
+
}
|
|
31230
|
+
}
|
|
31231
|
+
return await pollCondition();
|
|
31232
|
+
} catch (error51) {
|
|
31233
|
+
return toErrorResult(error51);
|
|
31234
|
+
}
|
|
31235
|
+
async function waitForReload() {
|
|
31236
|
+
await client.connection();
|
|
31237
|
+
const baseline = sinceReloads ?? reloads.count;
|
|
31238
|
+
while (reloads.count <= baseline) {
|
|
31239
|
+
if (Date.now() >= deadline) {
|
|
31240
|
+
return errorText(import_common_tags3.oneLine`
|
|
31241
|
+
Timed out after ${budget}ms waiting for a view reload
|
|
31242
|
+
(reload count still ${reloads.count}, baseline ${baseline}).
|
|
31243
|
+
`);
|
|
31244
|
+
}
|
|
31245
|
+
await sleep2(POLL_INTERVAL_MS2);
|
|
31246
|
+
}
|
|
31247
|
+
if (quiescentMs > 0) {
|
|
31248
|
+
let lastCount = reloads.count;
|
|
31249
|
+
let quietSince = Date.now();
|
|
31250
|
+
while (Date.now() - quietSince < quiescentMs) {
|
|
31251
|
+
if (Date.now() >= deadline) {
|
|
31252
|
+
return errorText(import_common_tags3.oneLine`
|
|
31253
|
+
Timed out after ${budget}ms: reload observed, but context swaps kept arriving within the
|
|
31254
|
+
${quiescentMs}ms quiescence window.
|
|
31255
|
+
`);
|
|
31256
|
+
}
|
|
31257
|
+
await sleep2(POLL_INTERVAL_MS2);
|
|
31258
|
+
if (reloads.count != lastCount) {
|
|
31259
|
+
lastCount = reloads.count;
|
|
31260
|
+
quietSince = Date.now();
|
|
31261
|
+
}
|
|
31262
|
+
}
|
|
31263
|
+
}
|
|
31264
|
+
return;
|
|
31265
|
+
}
|
|
31266
|
+
async function pollCondition() {
|
|
31267
|
+
const expression = selector ? callPageFn(waitCheckFn, selector, visible) : `Boolean(${predicate ?? ""})`;
|
|
31268
|
+
let lastError;
|
|
31269
|
+
while (true) {
|
|
31340
31270
|
const res = await client.call("Runtime.evaluate", {
|
|
31341
31271
|
expression,
|
|
31342
31272
|
returnByValue: true
|
|
@@ -31345,7 +31275,8 @@ async function gameWait(client, options) {
|
|
|
31345
31275
|
lastError = formatException(res.exceptionDetails);
|
|
31346
31276
|
} else if (res.result.value) {
|
|
31347
31277
|
const what = selector ? `selector ${JSON.stringify(selector)}` : "predicate";
|
|
31348
|
-
|
|
31278
|
+
const reloadNote = reload ? ` Reload count: ${reloads.count}.` : "";
|
|
31279
|
+
return text(`Condition met (${what}) after ${Date.now() - start}ms.${reloadNote}`);
|
|
31349
31280
|
} else {
|
|
31350
31281
|
lastError = undefined;
|
|
31351
31282
|
}
|
|
@@ -31356,14 +31287,12 @@ async function gameWait(client, options) {
|
|
|
31356
31287
|
}
|
|
31357
31288
|
await sleep2(POLL_INTERVAL_MS2);
|
|
31358
31289
|
}
|
|
31359
|
-
} catch (error51) {
|
|
31360
|
-
return toErrorResult(error51);
|
|
31361
31290
|
}
|
|
31362
31291
|
}
|
|
31363
|
-
async function gameFill(client, selector, value) {
|
|
31292
|
+
async function gameFill(client, selector, value, index = 0) {
|
|
31364
31293
|
try {
|
|
31365
31294
|
const res = await client.call("Runtime.evaluate", {
|
|
31366
|
-
expression: callPageFn(fillFn, selector, value),
|
|
31295
|
+
expression: callPageFn(fillFn, selector, value, index),
|
|
31367
31296
|
returnByValue: true
|
|
31368
31297
|
});
|
|
31369
31298
|
if (res.exceptionDetails) {
|
|
@@ -31371,20 +31300,23 @@ async function gameFill(client, selector, value) {
|
|
|
31371
31300
|
}
|
|
31372
31301
|
const info = res.result.value;
|
|
31373
31302
|
if (!info?.found) {
|
|
31374
|
-
return errorText(`
|
|
31303
|
+
return errorText(import_common_tags3.oneLine`
|
|
31304
|
+
No element matched ${JSON.stringify(selector)} for game_fill at index ${index}
|
|
31305
|
+
(matches found: ${info?.count ?? 0}).
|
|
31306
|
+
`);
|
|
31375
31307
|
}
|
|
31376
31308
|
return text(import_common_tags3.oneLine`
|
|
31377
|
-
Filled ${JSON.stringify(selector)} (${info.mode}).
|
|
31378
|
-
Value is now ${JSON.stringify(info.value)}.
|
|
31309
|
+
Filled ${JSON.stringify(selector)} [index ${index}] (${info.mode}).
|
|
31310
|
+
Value is now ${JSON.stringify(info.value)}. Matches: ${info.count}.
|
|
31379
31311
|
`);
|
|
31380
31312
|
} catch (error51) {
|
|
31381
31313
|
return toErrorResult(error51);
|
|
31382
31314
|
}
|
|
31383
31315
|
}
|
|
31384
|
-
async function gameType(client, selector, textToType) {
|
|
31316
|
+
async function gameType(client, selector, textToType, index = 0) {
|
|
31385
31317
|
try {
|
|
31386
31318
|
const res = await client.call("Runtime.evaluate", {
|
|
31387
|
-
expression: callPageFn(typeFn, selector, textToType),
|
|
31319
|
+
expression: callPageFn(typeFn, selector, textToType, index),
|
|
31388
31320
|
returnByValue: true
|
|
31389
31321
|
});
|
|
31390
31322
|
if (res.exceptionDetails) {
|
|
@@ -31392,20 +31324,23 @@ async function gameType(client, selector, textToType) {
|
|
|
31392
31324
|
}
|
|
31393
31325
|
const info = res.result.value;
|
|
31394
31326
|
if (!info?.found) {
|
|
31395
|
-
return errorText(`
|
|
31327
|
+
return errorText(import_common_tags3.oneLine`
|
|
31328
|
+
No element matched ${JSON.stringify(selector)} for game_type at index ${index}
|
|
31329
|
+
(matches found: ${info?.count ?? 0}).
|
|
31330
|
+
`);
|
|
31396
31331
|
}
|
|
31397
31332
|
return text(import_common_tags3.oneLine`
|
|
31398
|
-
Typed ${info.typed} char(s) into ${JSON.stringify(selector)}.
|
|
31399
|
-
Value is now ${JSON.stringify(info.value)}.
|
|
31333
|
+
Typed ${info.typed} char(s) into ${JSON.stringify(selector)} [index ${index}].
|
|
31334
|
+
Value is now ${JSON.stringify(info.value)}. Matches: ${info.count}.
|
|
31400
31335
|
`);
|
|
31401
31336
|
} catch (error51) {
|
|
31402
31337
|
return toErrorResult(error51);
|
|
31403
31338
|
}
|
|
31404
31339
|
}
|
|
31405
|
-
async function gameHover(client, selector) {
|
|
31340
|
+
async function gameHover(client, selector, index = 0) {
|
|
31406
31341
|
try {
|
|
31407
31342
|
const res = await client.call("Runtime.evaluate", {
|
|
31408
|
-
expression: callPageFn(hoverFn, selector),
|
|
31343
|
+
expression: callPageFn(hoverFn, selector, index),
|
|
31409
31344
|
returnByValue: true
|
|
31410
31345
|
});
|
|
31411
31346
|
if (res.exceptionDetails) {
|
|
@@ -31413,31 +31348,160 @@ async function gameHover(client, selector) {
|
|
|
31413
31348
|
}
|
|
31414
31349
|
const info = res.result.value;
|
|
31415
31350
|
if (!info?.found) {
|
|
31416
|
-
return errorText(`
|
|
31351
|
+
return errorText(import_common_tags3.oneLine`
|
|
31352
|
+
No element matched ${JSON.stringify(selector)} for game_hover at index ${index}
|
|
31353
|
+
(matches found: ${info?.count ?? 0}).
|
|
31354
|
+
`);
|
|
31355
|
+
}
|
|
31356
|
+
return text(import_common_tags3.oneLine`
|
|
31357
|
+
Hovered ${JSON.stringify(selector)} [index ${index}] at
|
|
31358
|
+
(${info.x.toFixed(0)}, ${info.y.toFixed(0)}).
|
|
31359
|
+
Dispatched: ${info.fired.join(", ")}. Matches: ${info.count}.
|
|
31360
|
+
`);
|
|
31361
|
+
} catch (error51) {
|
|
31362
|
+
return toErrorResult(error51);
|
|
31363
|
+
}
|
|
31364
|
+
}
|
|
31365
|
+
async function gameKey(client, options) {
|
|
31366
|
+
const {
|
|
31367
|
+
key,
|
|
31368
|
+
count = 1,
|
|
31369
|
+
ctrl = false,
|
|
31370
|
+
shift = false,
|
|
31371
|
+
alt = false,
|
|
31372
|
+
meta: meta3 = false,
|
|
31373
|
+
selector,
|
|
31374
|
+
index = 0
|
|
31375
|
+
} = options;
|
|
31376
|
+
try {
|
|
31377
|
+
const res = await client.call("Runtime.evaluate", {
|
|
31378
|
+
expression: callPageFn(keyFn, {
|
|
31379
|
+
key,
|
|
31380
|
+
count,
|
|
31381
|
+
ctrl,
|
|
31382
|
+
shift,
|
|
31383
|
+
alt,
|
|
31384
|
+
meta: meta3,
|
|
31385
|
+
sel: selector ?? null,
|
|
31386
|
+
index
|
|
31387
|
+
}),
|
|
31388
|
+
returnByValue: true
|
|
31389
|
+
});
|
|
31390
|
+
if (res.exceptionDetails) {
|
|
31391
|
+
return errorText(`Key press failed: ${formatException(res.exceptionDetails)}`);
|
|
31392
|
+
}
|
|
31393
|
+
const info = res.result.value;
|
|
31394
|
+
if (!info) {
|
|
31395
|
+
return errorText(`game_key returned no result.`);
|
|
31396
|
+
}
|
|
31397
|
+
if (!info.found) {
|
|
31398
|
+
return errorText(import_common_tags3.oneLine`
|
|
31399
|
+
No element matched ${JSON.stringify(selector)} for game_key at index ${index}
|
|
31400
|
+
(matches found: ${info.count}).
|
|
31401
|
+
`);
|
|
31417
31402
|
}
|
|
31403
|
+
const where = info.via == "selector" ? `${JSON.stringify(selector)} [index ${index}] ${info.target}` : info.via == "activeElement" ? `the focused element ${info.target}` : `document`;
|
|
31404
|
+
const matchNote = info.matches == null ? "" : ` Matches: ${info.matches}.`;
|
|
31418
31405
|
return text(import_common_tags3.oneLine`
|
|
31419
|
-
|
|
31420
|
-
|
|
31406
|
+
Pressed ${keyLabel(key, { ctrl, shift, alt, meta: meta3 })} ${info.presses}x on ${where}.${matchNote}
|
|
31407
|
+
Default prevented: ${info.defaultPrevented ? "yes" : "no"}.
|
|
31421
31408
|
`);
|
|
31422
31409
|
} catch (error51) {
|
|
31423
31410
|
return toErrorResult(error51);
|
|
31424
31411
|
}
|
|
31425
31412
|
}
|
|
31413
|
+
function keyLabel(key, mods) {
|
|
31414
|
+
const parts = [];
|
|
31415
|
+
if (mods.ctrl) {
|
|
31416
|
+
parts.push("Ctrl");
|
|
31417
|
+
}
|
|
31418
|
+
if (mods.shift) {
|
|
31419
|
+
parts.push("Shift");
|
|
31420
|
+
}
|
|
31421
|
+
if (mods.alt) {
|
|
31422
|
+
parts.push("Alt");
|
|
31423
|
+
}
|
|
31424
|
+
if (mods.meta) {
|
|
31425
|
+
parts.push("Meta");
|
|
31426
|
+
}
|
|
31427
|
+
parts.push(key == " " ? "Space" : key);
|
|
31428
|
+
return parts.join("+");
|
|
31429
|
+
}
|
|
31426
31430
|
|
|
31427
|
-
class
|
|
31428
|
-
|
|
31429
|
-
|
|
31430
|
-
|
|
31431
|
-
|
|
31431
|
+
class ReloadTracker {
|
|
31432
|
+
reloadCount = 0;
|
|
31433
|
+
lastReloadAtMs;
|
|
31434
|
+
uniqueId;
|
|
31435
|
+
reloadListeners = new Set;
|
|
31436
|
+
constructor(client) {
|
|
31432
31437
|
client.onConnect(async (conn) => {
|
|
31433
31438
|
await conn.ensureDomain("Runtime");
|
|
31434
|
-
await conn.ensureDomain("Log");
|
|
31435
31439
|
});
|
|
31436
31440
|
client.onEvent((method, params) => {
|
|
31437
31441
|
this.handle(method, params);
|
|
31438
31442
|
});
|
|
31439
31443
|
}
|
|
31440
|
-
|
|
31444
|
+
get count() {
|
|
31445
|
+
return this.reloadCount;
|
|
31446
|
+
}
|
|
31447
|
+
get lastReloadAt() {
|
|
31448
|
+
return this.lastReloadAtMs;
|
|
31449
|
+
}
|
|
31450
|
+
get contextUniqueId() {
|
|
31451
|
+
return this.uniqueId;
|
|
31452
|
+
}
|
|
31453
|
+
onReload(listener) {
|
|
31454
|
+
this.reloadListeners.add(listener);
|
|
31455
|
+
}
|
|
31456
|
+
handle(method, params) {
|
|
31457
|
+
if (method != "Runtime.executionContextCreated") {
|
|
31458
|
+
return;
|
|
31459
|
+
}
|
|
31460
|
+
const { context } = params;
|
|
31461
|
+
const isDefault = context?.auxData?.isDefault;
|
|
31462
|
+
if (!(isDefault == true || isDefault == "true") || context?.uniqueId == null) {
|
|
31463
|
+
return;
|
|
31464
|
+
}
|
|
31465
|
+
if (this.uniqueId == context.uniqueId) {
|
|
31466
|
+
return;
|
|
31467
|
+
}
|
|
31468
|
+
const isBaseline = this.uniqueId == null;
|
|
31469
|
+
this.uniqueId = context.uniqueId;
|
|
31470
|
+
if (isBaseline) {
|
|
31471
|
+
return;
|
|
31472
|
+
}
|
|
31473
|
+
this.reloadCount++;
|
|
31474
|
+
this.lastReloadAtMs = Date.now();
|
|
31475
|
+
for (const listener of this.reloadListeners) {
|
|
31476
|
+
try {
|
|
31477
|
+
listener(this.reloadCount);
|
|
31478
|
+
} catch {}
|
|
31479
|
+
}
|
|
31480
|
+
}
|
|
31481
|
+
}
|
|
31482
|
+
|
|
31483
|
+
class ConsoleBuffer {
|
|
31484
|
+
entries = [];
|
|
31485
|
+
max;
|
|
31486
|
+
constructor(client, reloads, max = 500) {
|
|
31487
|
+
this.max = max;
|
|
31488
|
+
client.onConnect(async (conn) => {
|
|
31489
|
+
await conn.ensureDomain("Runtime");
|
|
31490
|
+
await conn.ensureDomain("Log");
|
|
31491
|
+
});
|
|
31492
|
+
client.onEvent((method, params) => {
|
|
31493
|
+
this.handle(method, params);
|
|
31494
|
+
});
|
|
31495
|
+
reloads.onReload((count) => {
|
|
31496
|
+
this.push({
|
|
31497
|
+
ts: Date.now(),
|
|
31498
|
+
kind: "reload",
|
|
31499
|
+
level: "info",
|
|
31500
|
+
text: `view reloaded (#${count})`
|
|
31501
|
+
});
|
|
31502
|
+
});
|
|
31503
|
+
}
|
|
31504
|
+
read(limit, level, clear) {
|
|
31441
31505
|
const filtered = level ? this.entries.filter((entry) => entry.level == level) : this.entries;
|
|
31442
31506
|
const out = filtered.slice(-limit);
|
|
31443
31507
|
if (clear) {
|
|
@@ -31496,214 +31560,733 @@ async function gameConsole(client, buffer, options) {
|
|
|
31496
31560
|
return text(entries.map((entry) => `[${entry.level}] (${entry.kind}) ${entry.text}`).join(`
|
|
31497
31561
|
`));
|
|
31498
31562
|
}
|
|
31563
|
+
function callPageFn(fn, ...args) {
|
|
31564
|
+
const serialisedArgs = args.map((arg) => JSON.stringify(arg)).join(", ");
|
|
31565
|
+
return `(${fn.toString()})(${serialisedArgs})`;
|
|
31566
|
+
}
|
|
31567
|
+
function collectDomFn(sel, all, maxHtml) {
|
|
31568
|
+
const matches = document.querySelectorAll(sel);
|
|
31569
|
+
const first = matches.item(0);
|
|
31570
|
+
const chosen = all ? Array.from(matches) : first ? [first] : [];
|
|
31571
|
+
return { count: matches.length, elements: chosen.map((el) => describe3(el)) };
|
|
31572
|
+
function describe3(el) {
|
|
31573
|
+
const rect = el.getBoundingClientRect();
|
|
31574
|
+
const attributes = {};
|
|
31575
|
+
for (const attr of Array.from(el.attributes)) {
|
|
31576
|
+
attributes[attr.name] = attr.value;
|
|
31577
|
+
}
|
|
31578
|
+
const classAttr = el.getAttribute("class");
|
|
31579
|
+
let html = el.outerHTML || "";
|
|
31580
|
+
const truncated = html.length > maxHtml;
|
|
31581
|
+
if (truncated) {
|
|
31582
|
+
html = html.slice(0, maxHtml);
|
|
31583
|
+
}
|
|
31584
|
+
return {
|
|
31585
|
+
tagName: el.tagName ? el.tagName.toLowerCase() : null,
|
|
31586
|
+
id: el.id || null,
|
|
31587
|
+
classes: classAttr != null && classAttr.length > 0 ? classAttr : null,
|
|
31588
|
+
rect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height },
|
|
31589
|
+
attributes,
|
|
31590
|
+
outerHTML: html,
|
|
31591
|
+
truncated
|
|
31592
|
+
};
|
|
31593
|
+
}
|
|
31594
|
+
}
|
|
31595
|
+
function findFn(args) {
|
|
31596
|
+
const { sel, needle, mode, caseSensitive, deepest, tag, limit } = args;
|
|
31597
|
+
const SNIPPET_MAX = 100;
|
|
31598
|
+
const target = caseSensitive ? needle : needle.toLowerCase();
|
|
31599
|
+
let regex;
|
|
31600
|
+
if (mode == "regex") {
|
|
31601
|
+
try {
|
|
31602
|
+
regex = new RegExp(needle, caseSensitive ? "" : "i");
|
|
31603
|
+
} catch (error51) {
|
|
31604
|
+
return { error: `Invalid regex: ${error51 instanceof Error ? error51.message : String(error51)}` };
|
|
31605
|
+
}
|
|
31606
|
+
}
|
|
31607
|
+
const found = [];
|
|
31608
|
+
for (const el of Array.from(document.querySelectorAll(sel))) {
|
|
31609
|
+
if (matches((el.textContent || "").trim())) {
|
|
31610
|
+
found.push(el);
|
|
31611
|
+
}
|
|
31612
|
+
}
|
|
31613
|
+
const kept = deepest ? found.filter((el) => !found.some((other) => other != el && el.contains(other))) : found;
|
|
31614
|
+
const chosen = kept.slice(0, limit);
|
|
31615
|
+
if (tag) {
|
|
31616
|
+
for (const stale of Array.from(document.querySelectorAll("[data-gf-find]"))) {
|
|
31617
|
+
stale.removeAttribute("data-gf-find");
|
|
31618
|
+
}
|
|
31619
|
+
for (const [i, el] of chosen.entries()) {
|
|
31620
|
+
el.setAttribute("data-gf-find", String(i + 1));
|
|
31621
|
+
}
|
|
31622
|
+
}
|
|
31623
|
+
return {
|
|
31624
|
+
unprunedTotal: found.length,
|
|
31625
|
+
total: kept.length,
|
|
31626
|
+
returned: chosen.length,
|
|
31627
|
+
tagged: tag,
|
|
31628
|
+
elements: chosen.map((el, i) => describe3(el, i))
|
|
31629
|
+
};
|
|
31630
|
+
function matches(raw) {
|
|
31631
|
+
if (mode == "regex") {
|
|
31632
|
+
return regex != null && regex.test(raw);
|
|
31633
|
+
}
|
|
31634
|
+
const hay = caseSensitive ? raw : raw.toLowerCase();
|
|
31635
|
+
if (mode == "equals") {
|
|
31636
|
+
return hay == target;
|
|
31637
|
+
}
|
|
31638
|
+
return hay.includes(target);
|
|
31639
|
+
}
|
|
31640
|
+
function describe3(el, i) {
|
|
31641
|
+
const rect = el.getBoundingClientRect();
|
|
31642
|
+
const classAttr = el.getAttribute("class");
|
|
31643
|
+
const raw = (el.textContent || "").trim();
|
|
31644
|
+
const truncated = raw.length > SNIPPET_MAX;
|
|
31645
|
+
const info = {
|
|
31646
|
+
tagName: el.tagName ? el.tagName.toLowerCase() : null,
|
|
31647
|
+
id: el.id || null,
|
|
31648
|
+
classes: classAttr != null && classAttr.length > 0 ? classAttr : null,
|
|
31649
|
+
rect: { x: rect.x, y: rect.y, width: rect.width, height: rect.height },
|
|
31650
|
+
text: truncated ? raw.slice(0, SNIPPET_MAX) : raw,
|
|
31651
|
+
truncated
|
|
31652
|
+
};
|
|
31653
|
+
if (tag) {
|
|
31654
|
+
info.selector = `[data-gf-find="${i + 1}"]`;
|
|
31655
|
+
}
|
|
31656
|
+
return info;
|
|
31657
|
+
}
|
|
31658
|
+
}
|
|
31659
|
+
function clickFn(sel, index) {
|
|
31660
|
+
const nodes = document.querySelectorAll(sel);
|
|
31661
|
+
if (nodes.length == 0) {
|
|
31662
|
+
return { found: false, count: 0, fired: [] };
|
|
31663
|
+
}
|
|
31664
|
+
const node = nodes[index];
|
|
31665
|
+
if (!node) {
|
|
31666
|
+
return { found: false, count: nodes.length, fired: [] };
|
|
31667
|
+
}
|
|
31668
|
+
const el = node;
|
|
31669
|
+
const rect = el.getBoundingClientRect();
|
|
31670
|
+
const cx = rect.x + rect.width / 2;
|
|
31671
|
+
const cy = rect.y + rect.height / 2;
|
|
31672
|
+
const base = {
|
|
31673
|
+
bubbles: true,
|
|
31674
|
+
cancelable: true,
|
|
31675
|
+
view: window,
|
|
31676
|
+
button: 0,
|
|
31677
|
+
clientX: cx,
|
|
31678
|
+
clientY: cy
|
|
31679
|
+
};
|
|
31680
|
+
const Pointer = typeof PointerEvent == "function" ? PointerEvent : MouseEvent;
|
|
31681
|
+
const fired = [];
|
|
31682
|
+
fire(Pointer, "pointerdown", { pointerId: 1, isPrimary: true });
|
|
31683
|
+
fire(MouseEvent, "mousedown");
|
|
31684
|
+
fire(Pointer, "pointerup", { pointerId: 1, isPrimary: true });
|
|
31685
|
+
fire(MouseEvent, "mouseup");
|
|
31686
|
+
fire(MouseEvent, "click");
|
|
31687
|
+
return { found: true, count: nodes.length, x: cx, y: cy, fired };
|
|
31688
|
+
function fire(Ctor, type, extra) {
|
|
31689
|
+
try {
|
|
31690
|
+
el.dispatchEvent(new Ctor(type, { ...base, ...extra }));
|
|
31691
|
+
fired.push(type);
|
|
31692
|
+
} catch {}
|
|
31693
|
+
}
|
|
31694
|
+
}
|
|
31695
|
+
function waitCheckFn(sel, visible) {
|
|
31696
|
+
const el = document.querySelector(sel);
|
|
31697
|
+
if (!el) {
|
|
31698
|
+
return false;
|
|
31699
|
+
}
|
|
31700
|
+
if (!visible) {
|
|
31701
|
+
return true;
|
|
31702
|
+
}
|
|
31703
|
+
const rect = el.getBoundingClientRect();
|
|
31704
|
+
return rect.width > 0 && rect.height > 0;
|
|
31705
|
+
}
|
|
31706
|
+
function fillFn(sel, value, index) {
|
|
31707
|
+
const nodes = document.querySelectorAll(sel);
|
|
31708
|
+
if (nodes.length == 0) {
|
|
31709
|
+
return { found: false, count: 0 };
|
|
31710
|
+
}
|
|
31711
|
+
const node = nodes[index];
|
|
31712
|
+
if (!node) {
|
|
31713
|
+
return { found: false, count: nodes.length };
|
|
31714
|
+
}
|
|
31715
|
+
const el = node;
|
|
31716
|
+
const count = nodes.length;
|
|
31717
|
+
try {
|
|
31718
|
+
el.focus();
|
|
31719
|
+
} catch {}
|
|
31720
|
+
const tag = (el.tagName || "").toLowerCase();
|
|
31721
|
+
if (el.isContentEditable) {
|
|
31722
|
+
el.textContent = value;
|
|
31723
|
+
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
31724
|
+
el.dispatchEvent(new Event("change", { bubbles: true }));
|
|
31725
|
+
return { found: true, count, mode: "contenteditable", value: el.textContent ?? "" };
|
|
31726
|
+
}
|
|
31727
|
+
const field = el;
|
|
31728
|
+
const proto = tag == "textarea" ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype;
|
|
31729
|
+
const setter = Object.getOwnPropertyDescriptor(proto, "value")?.set;
|
|
31730
|
+
if (setter) {
|
|
31731
|
+
setter.call(el, value);
|
|
31732
|
+
} else {
|
|
31733
|
+
field.value = value;
|
|
31734
|
+
}
|
|
31735
|
+
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
31736
|
+
el.dispatchEvent(new Event("change", { bubbles: true }));
|
|
31737
|
+
return { found: true, count, mode: tag || "input", value: field.value };
|
|
31738
|
+
}
|
|
31739
|
+
function typeFn(sel, textToType, index) {
|
|
31740
|
+
const nodes = document.querySelectorAll(sel);
|
|
31741
|
+
if (nodes.length == 0) {
|
|
31742
|
+
return { found: false, count: 0, typed: 0 };
|
|
31743
|
+
}
|
|
31744
|
+
const node = nodes[index];
|
|
31745
|
+
if (!node) {
|
|
31746
|
+
return { found: false, count: nodes.length, typed: 0 };
|
|
31747
|
+
}
|
|
31748
|
+
const el = node;
|
|
31749
|
+
const count = nodes.length;
|
|
31750
|
+
try {
|
|
31751
|
+
el.focus();
|
|
31752
|
+
} catch {}
|
|
31753
|
+
const tag = (el.tagName || "").toLowerCase();
|
|
31754
|
+
const editable = el.isContentEditable;
|
|
31755
|
+
const field = el;
|
|
31756
|
+
const proto = tag == "textarea" ? HTMLTextAreaElement.prototype : HTMLInputElement.prototype;
|
|
31757
|
+
const setter = Object.getOwnPropertyDescriptor(proto, "value")?.set;
|
|
31758
|
+
let typed = 0;
|
|
31759
|
+
for (const ch of textToType) {
|
|
31760
|
+
const opts = {
|
|
31761
|
+
bubbles: true,
|
|
31762
|
+
cancelable: true,
|
|
31763
|
+
key: ch,
|
|
31764
|
+
view: window
|
|
31765
|
+
};
|
|
31766
|
+
try {
|
|
31767
|
+
el.dispatchEvent(new KeyboardEvent("keydown", opts));
|
|
31768
|
+
} catch {}
|
|
31769
|
+
setValue(current() + ch);
|
|
31770
|
+
el.dispatchEvent(new Event("input", { bubbles: true }));
|
|
31771
|
+
try {
|
|
31772
|
+
el.dispatchEvent(new KeyboardEvent("keyup", opts));
|
|
31773
|
+
} catch {}
|
|
31774
|
+
typed++;
|
|
31775
|
+
}
|
|
31776
|
+
el.dispatchEvent(new Event("change", { bubbles: true }));
|
|
31777
|
+
return { found: true, count, typed, value: current() };
|
|
31778
|
+
function current() {
|
|
31779
|
+
if (editable) {
|
|
31780
|
+
return el.textContent ?? "";
|
|
31781
|
+
}
|
|
31782
|
+
return field.value || "";
|
|
31783
|
+
}
|
|
31784
|
+
function setValue(next) {
|
|
31785
|
+
if (editable) {
|
|
31786
|
+
el.textContent = next;
|
|
31787
|
+
} else if (setter) {
|
|
31788
|
+
setter.call(el, next);
|
|
31789
|
+
} else {
|
|
31790
|
+
field.value = next;
|
|
31791
|
+
}
|
|
31792
|
+
}
|
|
31793
|
+
}
|
|
31794
|
+
function hoverFn(sel, index) {
|
|
31795
|
+
const nodes = document.querySelectorAll(sel);
|
|
31796
|
+
if (nodes.length == 0) {
|
|
31797
|
+
return { found: false, count: 0 };
|
|
31798
|
+
}
|
|
31799
|
+
const node = nodes[index];
|
|
31800
|
+
if (!node) {
|
|
31801
|
+
return { found: false, count: nodes.length };
|
|
31802
|
+
}
|
|
31803
|
+
const el = node;
|
|
31804
|
+
const count = nodes.length;
|
|
31805
|
+
const rect = el.getBoundingClientRect();
|
|
31806
|
+
const cx = rect.x + rect.width / 2;
|
|
31807
|
+
const cy = rect.y + rect.height / 2;
|
|
31808
|
+
const base = {
|
|
31809
|
+
bubbles: true,
|
|
31810
|
+
cancelable: true,
|
|
31811
|
+
view: window,
|
|
31812
|
+
clientX: cx,
|
|
31813
|
+
clientY: cy
|
|
31814
|
+
};
|
|
31815
|
+
const noBubble = { ...base, bubbles: false };
|
|
31816
|
+
const fired = [];
|
|
31817
|
+
fire("pointerover", base);
|
|
31818
|
+
fire("mouseover", base);
|
|
31819
|
+
fire("pointerenter", noBubble);
|
|
31820
|
+
fire("mouseenter", noBubble);
|
|
31821
|
+
fire("mousemove", base);
|
|
31822
|
+
return { found: true, count, x: cx, y: cy, fired };
|
|
31823
|
+
function fire(type, init) {
|
|
31824
|
+
try {
|
|
31825
|
+
el.dispatchEvent(new MouseEvent(type, init));
|
|
31826
|
+
fired.push(type);
|
|
31827
|
+
} catch {}
|
|
31828
|
+
}
|
|
31829
|
+
}
|
|
31830
|
+
function keyFn(args) {
|
|
31831
|
+
const { key, count, ctrl, shift, alt, meta: meta3, sel, index } = args;
|
|
31832
|
+
let target;
|
|
31833
|
+
let via;
|
|
31834
|
+
let node = null;
|
|
31835
|
+
let matches = null;
|
|
31836
|
+
if (sel == null) {
|
|
31837
|
+
const active = document.activeElement;
|
|
31838
|
+
if (active) {
|
|
31839
|
+
target = active;
|
|
31840
|
+
node = active;
|
|
31841
|
+
via = "activeElement";
|
|
31842
|
+
} else {
|
|
31843
|
+
target = document.body || document;
|
|
31844
|
+
node = document.body;
|
|
31845
|
+
via = "document";
|
|
31846
|
+
}
|
|
31847
|
+
} else {
|
|
31848
|
+
const nodes = document.querySelectorAll(sel);
|
|
31849
|
+
if (nodes.length == 0) {
|
|
31850
|
+
return { found: false, count: 0 };
|
|
31851
|
+
}
|
|
31852
|
+
const chosen = nodes[index];
|
|
31853
|
+
if (!chosen) {
|
|
31854
|
+
return { found: false, count: nodes.length };
|
|
31855
|
+
}
|
|
31856
|
+
try {
|
|
31857
|
+
chosen.focus();
|
|
31858
|
+
} catch {}
|
|
31859
|
+
target = chosen;
|
|
31860
|
+
node = chosen;
|
|
31861
|
+
matches = nodes.length;
|
|
31862
|
+
via = "selector";
|
|
31863
|
+
}
|
|
31864
|
+
const map3 = codeFor(key);
|
|
31865
|
+
const init = {
|
|
31866
|
+
bubbles: true,
|
|
31867
|
+
cancelable: true,
|
|
31868
|
+
view: window,
|
|
31869
|
+
key,
|
|
31870
|
+
ctrlKey: ctrl,
|
|
31871
|
+
shiftKey: shift,
|
|
31872
|
+
altKey: alt,
|
|
31873
|
+
metaKey: meta3
|
|
31874
|
+
};
|
|
31875
|
+
if (map3) {
|
|
31876
|
+
init.code = map3.code;
|
|
31877
|
+
}
|
|
31878
|
+
let defaultPrevented = false;
|
|
31879
|
+
let presses = 0;
|
|
31880
|
+
for (let i = 0;i < count; i++) {
|
|
31881
|
+
if (dispatch("keydown")) {
|
|
31882
|
+
defaultPrevented = true;
|
|
31883
|
+
}
|
|
31884
|
+
dispatch("keyup");
|
|
31885
|
+
presses++;
|
|
31886
|
+
}
|
|
31887
|
+
return {
|
|
31888
|
+
found: true,
|
|
31889
|
+
via,
|
|
31890
|
+
target: node ? describe3(node) : "document",
|
|
31891
|
+
matches,
|
|
31892
|
+
presses,
|
|
31893
|
+
defaultPrevented
|
|
31894
|
+
};
|
|
31895
|
+
function dispatch(type) {
|
|
31896
|
+
try {
|
|
31897
|
+
const ev = new KeyboardEvent(type, init);
|
|
31898
|
+
force(ev, "key", key);
|
|
31899
|
+
if (map3) {
|
|
31900
|
+
force(ev, "code", map3.code);
|
|
31901
|
+
force(ev, "keyCode", map3.keyCode);
|
|
31902
|
+
force(ev, "which", map3.keyCode);
|
|
31903
|
+
}
|
|
31904
|
+
const notPrevented = target.dispatchEvent(ev);
|
|
31905
|
+
return type == "keydown" && !notPrevented;
|
|
31906
|
+
} catch {
|
|
31907
|
+
return false;
|
|
31908
|
+
}
|
|
31909
|
+
}
|
|
31910
|
+
function force(ev, prop, value) {
|
|
31911
|
+
try {
|
|
31912
|
+
Object.defineProperty(ev, prop, { get: () => value, configurable: true });
|
|
31913
|
+
} catch {}
|
|
31914
|
+
}
|
|
31915
|
+
function codeFor(name) {
|
|
31916
|
+
const table = {
|
|
31917
|
+
Escape: { code: "Escape", keyCode: 27 },
|
|
31918
|
+
Enter: { code: "Enter", keyCode: 13 },
|
|
31919
|
+
Tab: { code: "Tab", keyCode: 9 },
|
|
31920
|
+
" ": { code: "Space", keyCode: 32 },
|
|
31921
|
+
Backspace: { code: "Backspace", keyCode: 8 },
|
|
31922
|
+
Delete: { code: "Delete", keyCode: 46 },
|
|
31923
|
+
Home: { code: "Home", keyCode: 36 },
|
|
31924
|
+
End: { code: "End", keyCode: 35 },
|
|
31925
|
+
PageUp: { code: "PageUp", keyCode: 33 },
|
|
31926
|
+
PageDown: { code: "PageDown", keyCode: 34 },
|
|
31927
|
+
ArrowUp: { code: "ArrowUp", keyCode: 38 },
|
|
31928
|
+
ArrowDown: { code: "ArrowDown", keyCode: 40 },
|
|
31929
|
+
ArrowLeft: { code: "ArrowLeft", keyCode: 37 },
|
|
31930
|
+
ArrowRight: { code: "ArrowRight", keyCode: 39 }
|
|
31931
|
+
};
|
|
31932
|
+
const known = table[name];
|
|
31933
|
+
if (known) {
|
|
31934
|
+
return known;
|
|
31935
|
+
}
|
|
31936
|
+
const F1_KEY_CODE = 112;
|
|
31937
|
+
const fn = /^F(?<num>[1-9]|1[0-2])$/u.exec(name);
|
|
31938
|
+
if (fn) {
|
|
31939
|
+
const num2 = Number(fn.groups?.num);
|
|
31940
|
+
return { code: `F${num2}`, keyCode: F1_KEY_CODE + num2 - 1 };
|
|
31941
|
+
}
|
|
31942
|
+
if (/^[a-zA-Z]$/u.test(name)) {
|
|
31943
|
+
const upper = name.toUpperCase();
|
|
31944
|
+
return { code: `Key${upper}`, keyCode: upper.codePointAt(0) ?? 0 };
|
|
31945
|
+
}
|
|
31946
|
+
if (/^[0-9]$/u.test(name)) {
|
|
31947
|
+
return { code: `Digit${name}`, keyCode: name.codePointAt(0) ?? 0 };
|
|
31948
|
+
}
|
|
31949
|
+
return;
|
|
31950
|
+
}
|
|
31951
|
+
function describe3(el) {
|
|
31952
|
+
const tag = el.tagName ? el.tagName.toLowerCase() : "node";
|
|
31953
|
+
const id = el.id ? `#${el.id}` : "";
|
|
31954
|
+
const classAttr = el.getAttribute("class");
|
|
31955
|
+
const cls = classAttr && classAttr.trim() ? `.${classAttr.trim().split(/\s+/u)[0]}` : "";
|
|
31956
|
+
return `<${tag}${id}${cls}>`;
|
|
31957
|
+
}
|
|
31958
|
+
}
|
|
31959
|
+
function rectFn(sel, index) {
|
|
31960
|
+
const nodes = document.querySelectorAll(sel);
|
|
31961
|
+
if (nodes.length == 0) {
|
|
31962
|
+
return { found: false, count: 0 };
|
|
31963
|
+
}
|
|
31964
|
+
const el = nodes[index];
|
|
31965
|
+
if (!el) {
|
|
31966
|
+
return { found: false, count: nodes.length };
|
|
31967
|
+
}
|
|
31968
|
+
const rect = el.getBoundingClientRect();
|
|
31969
|
+
return {
|
|
31970
|
+
found: true,
|
|
31971
|
+
count: nodes.length,
|
|
31972
|
+
x: rect.x,
|
|
31973
|
+
y: rect.y,
|
|
31974
|
+
width: rect.width,
|
|
31975
|
+
height: rect.height
|
|
31976
|
+
};
|
|
31977
|
+
}
|
|
31499
31978
|
|
|
31500
31979
|
// src/server.ts
|
|
31501
31980
|
var { version: VERSION } = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
31502
31981
|
async function main() {
|
|
31503
31982
|
const config2 = loadConfig();
|
|
31504
31983
|
const client = new CdpClient(config2);
|
|
31505
|
-
const
|
|
31506
|
-
const
|
|
31984
|
+
const reloads = new ReloadTracker(client);
|
|
31985
|
+
const consoleBuffer = new ConsoleBuffer(client, reloads);
|
|
31986
|
+
const debug = new DebuggerSession(client, reloads);
|
|
31507
31987
|
const server = new McpServer({ name: "gameface-devtools-mcp", version: VERSION });
|
|
31508
31988
|
server.registerTool("game_status", {
|
|
31509
|
-
title:
|
|
31989
|
+
title: `Gameface UI status`,
|
|
31510
31990
|
description: import_common_tags4.oneLine`
|
|
31511
|
-
Check whether the Gameface UI debug endpoint is reachable and report the live page
|
|
31512
|
-
|
|
31991
|
+
Check whether the Gameface UI debug endpoint is reachable and report the live page target,
|
|
31992
|
+
engine info, and view-reload tracking (count, last reload time, context id).
|
|
31993
|
+
Calling it arms reload tracking and returns the baseline count for game_wait's sinceReloads.
|
|
31994
|
+
Run this first when other game_* tools fail.
|
|
31513
31995
|
`
|
|
31514
|
-
}, () => gameStatus(client));
|
|
31996
|
+
}, () => gameStatus(client, reloads));
|
|
31515
31997
|
server.registerTool("game_eval", {
|
|
31516
|
-
title:
|
|
31998
|
+
title: `Evaluate JS in the Gameface UI`,
|
|
31517
31999
|
description: import_common_tags4.oneLine`
|
|
31518
32000
|
Evaluate a JavaScript expression in the running Gameface UI (CDP Runtime.evaluate,
|
|
31519
|
-
returnByValue) and return the resulting value as JSON.
|
|
31520
|
-
friends to read the live DOM, inspect
|
|
32001
|
+
returnByValue) and return the resulting value as JSON.
|
|
32002
|
+
Use document.querySelector and friends to read the live DOM, inspect state, or call UI APIs.
|
|
31521
32003
|
`,
|
|
31522
32004
|
inputSchema: {
|
|
31523
|
-
expression: exports_external.string().describe(
|
|
31524
|
-
awaitPromise: exports_external.boolean().optional().describe(
|
|
32005
|
+
expression: exports_external.string().describe(`JavaScript expression to evaluate in the page context`),
|
|
32006
|
+
awaitPromise: exports_external.boolean().optional().describe(`If the expression returns a Promise, await it before returning`)
|
|
31525
32007
|
}
|
|
31526
32008
|
}, ({ expression, awaitPromise }) => gameEval(client, expression, awaitPromise));
|
|
31527
32009
|
server.registerTool("game_screenshot", {
|
|
31528
|
-
title:
|
|
32010
|
+
title: `Screenshot the Gameface UI`,
|
|
31529
32011
|
description: import_common_tags4.oneLine`
|
|
31530
32012
|
Capture a screenshot of the Gameface viewport (CDP Page.captureScreenshot) and return it
|
|
31531
|
-
as an inline image.
|
|
31532
|
-
|
|
32013
|
+
as an inline image.
|
|
32014
|
+
Pass a selector to clip the capture to one element; use index to pick among matches.
|
|
32015
|
+
Hangs while the JS debugger is paused; resume (game_debug_step) before capturing.
|
|
31533
32016
|
`,
|
|
31534
32017
|
inputSchema: {
|
|
31535
|
-
format: exports_external.enum(["png", "jpeg"]).optional().describe(
|
|
31536
|
-
quality: exports_external.number().min(1).max(100).optional().describe(
|
|
31537
|
-
selector: exports_external.string().optional().describe(
|
|
32018
|
+
format: exports_external.enum(["png", "jpeg"]).optional().describe(`Image format (default: jpeg)`),
|
|
32019
|
+
quality: exports_external.number().min(1).max(100).optional().describe(`JPEG quality 1-100 (only used when format is jpeg; default 80)`),
|
|
32020
|
+
selector: exports_external.string().optional().describe(`If set, clip the screenshot to this element's bounding box`),
|
|
32021
|
+
index: exports_external.number().int().min(0).optional().describe(`Which match to clip to when several exist (default: 0)`)
|
|
31538
32022
|
}
|
|
31539
|
-
}, ({ format, quality, selector }) => gameScreenshot(client, format, quality, selector));
|
|
32023
|
+
}, ({ format, quality, selector, index }) => gameScreenshot(client, { format, quality, selector, index }));
|
|
31540
32024
|
server.registerTool("game_wait", {
|
|
31541
|
-
title:
|
|
32025
|
+
title: `Wait for a condition in the Gameface UI`,
|
|
31542
32026
|
description: import_common_tags4.oneLine`
|
|
31543
|
-
Wait until a CSS selector matches (optionally visible)
|
|
31544
|
-
|
|
31545
|
-
|
|
32027
|
+
Wait until a CSS selector matches (optionally visible), a JS predicate becomes truthy,
|
|
32028
|
+
and/or a view reload happens. Provide at least one of reload / selector / predicate
|
|
32029
|
+
(selector and predicate are mutually exclusive).
|
|
32030
|
+
With reload, the phases compose: reload first, then a quiescence window, then the
|
|
32031
|
+
selector/predicate poll in the fresh context.
|
|
32032
|
+
Returns when met or times out.
|
|
31546
32033
|
`,
|
|
31547
32034
|
inputSchema: {
|
|
31548
|
-
selector: exports_external.string().optional().describe(
|
|
31549
|
-
predicate: exports_external.string().optional().describe(
|
|
31550
|
-
|
|
31551
|
-
|
|
31552
|
-
|
|
31553
|
-
|
|
32035
|
+
selector: exports_external.string().optional().describe(`CSS selector to wait for`),
|
|
32036
|
+
predicate: exports_external.string().optional().describe(`JS expression evaluated in the page; waits until it is truthy`),
|
|
32037
|
+
reload: exports_external.boolean().optional().describe(import_common_tags4.oneLine`
|
|
32038
|
+
Wait for a view reload (context reset) before the selector/predicate phase.
|
|
32039
|
+
Without sinceReloads, waits for the next reload after the call starts.
|
|
32040
|
+
`),
|
|
32041
|
+
sinceReloads: exports_external.number().int().min(0).optional().describe(import_common_tags4.oneLine`
|
|
32042
|
+
Baseline reload count (from a prior game_status or game_wait).
|
|
32043
|
+
The reload phase is satisfied as soon as the count exceeds it, even if the reload
|
|
32044
|
+
already happened; use it to avoid racing a reload you triggered yourself.
|
|
32045
|
+
`),
|
|
32046
|
+
quiescentMs: exports_external.number().int().min(0).optional().describe(import_common_tags4.oneLine`
|
|
32047
|
+
After a reload is observed, hold until no further context swap for this long (default
|
|
32048
|
+
1000, 0 disables); absorbs engines that swap the context several times per reload.
|
|
32049
|
+
`),
|
|
32050
|
+
timeoutMs: exports_external.number().int().min(0).optional().describe(import_common_tags4.oneLine`
|
|
32051
|
+
Max time to wait in ms (default 8000, or 30000 when reload is set; capped at 60000)
|
|
32052
|
+
`),
|
|
32053
|
+
visible: exports_external.boolean().optional().describe(`For selector waits, also require a non-zero bounding box (default false)`)
|
|
32054
|
+
}
|
|
32055
|
+
}, ({ selector, predicate, reload, sinceReloads, quiescentMs, timeoutMs, visible }) => gameWait(client, reloads, {
|
|
32056
|
+
selector,
|
|
32057
|
+
predicate,
|
|
32058
|
+
reload,
|
|
32059
|
+
sinceReloads,
|
|
32060
|
+
quiescentMs,
|
|
32061
|
+
timeoutMs,
|
|
32062
|
+
visible
|
|
32063
|
+
}));
|
|
31554
32064
|
server.registerTool("game_fill", {
|
|
31555
|
-
title:
|
|
32065
|
+
title: `Set an input value in the Gameface UI`,
|
|
31556
32066
|
description: import_common_tags4.oneLine`
|
|
31557
32067
|
Set the value of an input, textarea, or contenteditable element and fire input/change so
|
|
31558
|
-
|
|
32068
|
+
the UI framework reacts as if the user edited it.
|
|
32069
|
+
Best for setting a field in one shot; use game_type for keystrokes.
|
|
32070
|
+
Use index to pick among matches.
|
|
31559
32071
|
`,
|
|
31560
32072
|
inputSchema: {
|
|
31561
|
-
selector: exports_external.string().describe(
|
|
31562
|
-
value: exports_external.string().describe(
|
|
32073
|
+
selector: exports_external.string().describe(`CSS selector of the field to fill`),
|
|
32074
|
+
value: exports_external.string().describe(`Value to set`),
|
|
32075
|
+
index: exports_external.number().int().min(0).optional().describe(`Which match to fill when several exist (default: 0)`)
|
|
31563
32076
|
}
|
|
31564
|
-
}, ({ selector, value }) => gameFill(client, selector, value));
|
|
32077
|
+
}, ({ selector, value, index }) => gameFill(client, selector, value, index));
|
|
31565
32078
|
server.registerTool("game_type", {
|
|
31566
|
-
title:
|
|
32079
|
+
title: `Type text into the Gameface UI`,
|
|
31567
32080
|
description: import_common_tags4.oneLine`
|
|
31568
32081
|
Type text into an element character by character, firing real KeyboardEvents plus keeping
|
|
31569
|
-
the value in sync.
|
|
32082
|
+
the value in sync.
|
|
32083
|
+
Use when handlers react to individual keystrokes; otherwise game_fill.
|
|
32084
|
+
Use index to pick among matches.
|
|
31570
32085
|
`,
|
|
31571
32086
|
inputSchema: {
|
|
31572
|
-
selector: exports_external.string().describe(
|
|
31573
|
-
text: exports_external.string().describe(
|
|
32087
|
+
selector: exports_external.string().describe(`CSS selector of the field to type into`),
|
|
32088
|
+
text: exports_external.string().describe(`Text to type`),
|
|
32089
|
+
index: exports_external.number().int().min(0).optional().describe(`Which match to type into when several exist (default: 0)`)
|
|
31574
32090
|
}
|
|
31575
|
-
}, ({ selector, text: text2 }) => gameType(client, selector, text2));
|
|
32091
|
+
}, ({ selector, text: text2, index }) => gameType(client, selector, text2, index));
|
|
31576
32092
|
server.registerTool("game_hover", {
|
|
31577
|
-
title:
|
|
32093
|
+
title: `Hover an element in the Gameface UI`,
|
|
31578
32094
|
description: import_common_tags4.oneLine`
|
|
31579
32095
|
Hover an element by dispatching the pointer/mouse over/enter/move sequence in the page, so
|
|
31580
|
-
|
|
32096
|
+
the UI's mouseenter / pointerover JS handlers (tooltips) fire.
|
|
32097
|
+
The CSS :hover state is NOT set (only real game-forwarded mouse input sets it); verify a
|
|
32098
|
+
hover by its DOM effect, never by styling.
|
|
32099
|
+
Use index to pick among matches.
|
|
31581
32100
|
`,
|
|
31582
32101
|
inputSchema: {
|
|
31583
|
-
selector: exports_external.string().describe(
|
|
32102
|
+
selector: exports_external.string().describe(`CSS selector of the element to hover`),
|
|
32103
|
+
index: exports_external.number().int().min(0).optional().describe(`Which match to hover when several exist (default: 0)`)
|
|
31584
32104
|
}
|
|
31585
|
-
}, ({ selector }) => gameHover(client, selector));
|
|
32105
|
+
}, ({ selector, index }) => gameHover(client, selector, index));
|
|
32106
|
+
server.registerTool("game_key", {
|
|
32107
|
+
title: `Press a key in the Gameface UI`,
|
|
32108
|
+
description: import_common_tags4.oneLine`
|
|
32109
|
+
Press a named key by dispatching a real bubbling keydown+keyup in the page
|
|
32110
|
+
(KeyboardEvent.key, e.g. Escape, Enter, ArrowDown, a, F5), optionally with
|
|
32111
|
+
ctrl/shift/alt/meta and a repeat count.
|
|
32112
|
+
With a selector it focuses that element and dispatches on it (index picks among matches);
|
|
32113
|
+
without one it dispatches on the focused element, else document.
|
|
32114
|
+
It fires ONLY keydown and keyup (no keypress) and performs NO default action: no character
|
|
32115
|
+
insertion, no Backspace delete, no Tab focus move, no scrolling; use game_type to enter
|
|
32116
|
+
text.
|
|
32117
|
+
It reaches the UI's JS keydown handlers, but keys the game routes through its own native
|
|
32118
|
+
input layer do NOT respond (e.g. an Escape-to-close handled by the engine rather than the
|
|
32119
|
+
DOM).
|
|
32120
|
+
The result reports whether a handler called preventDefault, the observable signal the key
|
|
32121
|
+
was consumed.
|
|
32122
|
+
`,
|
|
32123
|
+
inputSchema: {
|
|
32124
|
+
key: exports_external.string().describe(`KeyboardEvent.key name to press, e.g. Escape, Enter, ArrowDown, a, F5`),
|
|
32125
|
+
count: exports_external.number().int().min(1).max(100).optional().describe(`How many keydown+keyup presses to fire back-to-back (default 1)`),
|
|
32126
|
+
ctrl: exports_external.boolean().optional().describe(`Hold Ctrl (ctrlKey) during the press (default false)`),
|
|
32127
|
+
shift: exports_external.boolean().optional().describe(`Hold Shift (shiftKey) during the press (default false)`),
|
|
32128
|
+
alt: exports_external.boolean().optional().describe(`Hold Alt (altKey) during the press (default false)`),
|
|
32129
|
+
meta: exports_external.boolean().optional().describe(`Hold Meta / Win / Cmd (metaKey) during the press (default false)`),
|
|
32130
|
+
selector: exports_external.string().optional().describe(`If set, focus this element and dispatch on it; else the focused element`),
|
|
32131
|
+
index: exports_external.number().int().min(0).optional().describe(`Which match to target when the selector has several (default: 0)`)
|
|
32132
|
+
}
|
|
32133
|
+
}, ({ key, count, ctrl, shift, alt, meta: meta3, selector, index }) => gameKey(client, { key, count, ctrl, shift, alt, meta: meta3, selector, index }));
|
|
31586
32134
|
server.registerTool("game_console", {
|
|
31587
|
-
title:
|
|
32135
|
+
title: `Read the Gameface UI console`,
|
|
31588
32136
|
description: import_common_tags4.oneLine`
|
|
31589
32137
|
Return recent console.* calls, log entries, and uncaught exceptions captured from the
|
|
31590
|
-
Gameface UI.
|
|
32138
|
+
Gameface UI.
|
|
32139
|
+
Capture starts when the server first connects to the application.
|
|
31591
32140
|
`,
|
|
31592
32141
|
inputSchema: {
|
|
31593
|
-
limit: exports_external.number().int().min(1).max(1000).optional().describe(
|
|
31594
|
-
level: exports_external.string().optional().describe(
|
|
31595
|
-
clear: exports_external.boolean().optional().describe(
|
|
32142
|
+
limit: exports_external.number().int().min(1).max(1000).optional().describe(`Max entries to return (default 50)`),
|
|
32143
|
+
level: exports_external.string().optional().describe(`Filter by level, e.g. error / warning / log / info`),
|
|
32144
|
+
clear: exports_external.boolean().optional().describe(`Clear the buffer after reading (default false)`)
|
|
31596
32145
|
}
|
|
31597
32146
|
}, ({ limit, level, clear }) => gameConsole(client, consoleBuffer, { limit, level, clear }));
|
|
31598
32147
|
server.registerTool("game_dom", {
|
|
31599
|
-
title:
|
|
32148
|
+
title: `Inspect Gameface UI DOM`,
|
|
31600
32149
|
description: import_common_tags4.oneLine`
|
|
31601
32150
|
Return DOM details (tag, id, classes, attributes, bounding rect, outerHTML) for elements
|
|
31602
|
-
matching a CSS selector in the live Gameface UI.
|
|
32151
|
+
matching a CSS selector in the live Gameface UI.
|
|
32152
|
+
Set all=true to return every match.
|
|
31603
32153
|
`,
|
|
31604
32154
|
inputSchema: {
|
|
31605
|
-
selector: exports_external.string().describe(
|
|
31606
|
-
all: exports_external.boolean().optional().describe(
|
|
31607
|
-
maxHtml: exports_external.number().min(0).optional().describe(
|
|
32155
|
+
selector: exports_external.string().describe(`CSS selector to query in the Gameface UI`),
|
|
32156
|
+
all: exports_external.boolean().optional().describe(`Return all matches instead of just the first (default: false)`),
|
|
32157
|
+
maxHtml: exports_external.number().min(0).optional().describe(`Max outerHTML characters per element before truncation (default: 4000)`)
|
|
31608
32158
|
}
|
|
31609
32159
|
}, ({ selector, all, maxHtml }) => gameDom(client, selector, all, maxHtml));
|
|
32160
|
+
server.registerTool("game_find", {
|
|
32161
|
+
title: `Find elements by text in the Gameface UI`,
|
|
32162
|
+
description: import_common_tags4.oneLine`
|
|
32163
|
+
Locate elements by their text content in the live Gameface UI: scan a CSS selector's matches
|
|
32164
|
+
(default: every element) and filter on trimmed textContent by equals/contains/regex
|
|
32165
|
+
(case-insensitive by default).
|
|
32166
|
+
Returns tag, id, classes, and bounding rect per match, plus match counts before and after
|
|
32167
|
+
deepest pruning so pruning and limit truncation are both visible.
|
|
32168
|
+
Set tag=true to stamp matches with data-gf-find handles and get back ready-to-use selectors
|
|
32169
|
+
for game_click / game_hover / game_screenshot.
|
|
32170
|
+
The go-to way to find an element when class names are build-hashed and there is no XPath.
|
|
32171
|
+
`,
|
|
32172
|
+
inputSchema: {
|
|
32173
|
+
text: exports_external.string().describe(`Text to match against each element's trimmed textContent`),
|
|
32174
|
+
match: exports_external.enum(["equals", "contains", "regex"]).optional().describe(`How to match the text: equals / contains / regex (default: contains)`),
|
|
32175
|
+
caseSensitive: exports_external.boolean().optional().describe(`Match case-sensitively (default: false)`),
|
|
32176
|
+
selector: exports_external.string().optional().describe(`CSS selector scoping the scan (default: *, every element)`),
|
|
32177
|
+
deepest: exports_external.boolean().optional().describe(`Keep only the innermost match, pruning ancestors that also matched (default: true)`),
|
|
32178
|
+
tag: exports_external.boolean().optional().describe(import_common_tags4.oneLine`
|
|
32179
|
+
Stamp matches with data-gf-find handles and return them as selectors, clearing any
|
|
32180
|
+
prior handles first (default: false).
|
|
32181
|
+
`),
|
|
32182
|
+
limit: exports_external.number().int().min(1).max(100).optional().describe(`Max matches to return (default: 20); the total count is always reported`)
|
|
32183
|
+
}
|
|
32184
|
+
}, ({ text: text2, match, caseSensitive, selector, deepest, tag, limit }) => gameFind(client, { text: text2, match, caseSensitive, selector, deepest, tag, limit }));
|
|
31610
32185
|
server.registerTool("game_click", {
|
|
31611
|
-
title:
|
|
32186
|
+
title: `Click an element in the Gameface UI`,
|
|
31612
32187
|
description: import_common_tags4.oneLine`
|
|
31613
|
-
Click the element matching a CSS selector by dispatching a real bubbling
|
|
31614
|
-
|
|
31615
|
-
|
|
32188
|
+
Click the element matching a CSS selector by dispatching a real bubbling pointer/mouse/click
|
|
32189
|
+
sequence in the page (NOT CDP Input, which Gameface ignores for the UI).
|
|
32190
|
+
Use index to pick among matches.
|
|
31616
32191
|
`,
|
|
31617
32192
|
inputSchema: {
|
|
31618
|
-
selector: exports_external.string().describe(
|
|
31619
|
-
index: exports_external.number().int().min(0).optional().describe(
|
|
32193
|
+
selector: exports_external.string().describe(`CSS selector of the element to click`),
|
|
32194
|
+
index: exports_external.number().int().min(0).optional().describe(`Which match to click when several exist (default: 0)`)
|
|
31620
32195
|
}
|
|
31621
32196
|
}, ({ selector, index }) => gameClick(client, selector, index));
|
|
31622
32197
|
server.registerTool("game_debug_status", {
|
|
31623
|
-
title:
|
|
32198
|
+
title: `JS debugger status`,
|
|
31624
32199
|
description: import_common_tags4.oneLine`
|
|
31625
32200
|
Report debugger state: whether paused (and where), pause-on-exceptions mode, breakpoints,
|
|
31626
|
-
and parsed script count.
|
|
31627
|
-
|
|
32201
|
+
and parsed script count.
|
|
32202
|
+
Pass setPauseOnExceptions to change exception pausing.
|
|
32203
|
+
Enables the debugger on first use.
|
|
32204
|
+
Hitting a breakpoint FREEZES the UI until resumed.
|
|
31628
32205
|
`,
|
|
31629
32206
|
inputSchema: {
|
|
31630
|
-
setPauseOnExceptions: exports_external.enum(["none", "uncaught", "all"]).optional().describe(
|
|
32207
|
+
setPauseOnExceptions: exports_external.enum(["none", "uncaught", "all"]).optional().describe(`If set, change which exceptions pause execution (default none)`)
|
|
31631
32208
|
}
|
|
31632
32209
|
}, ({ setPauseOnExceptions }) => debug.status(setPauseOnExceptions));
|
|
31633
32210
|
server.registerTool("game_debug_scripts", {
|
|
31634
|
-
title:
|
|
32211
|
+
title: `List parsed UI scripts`,
|
|
31635
32212
|
description: import_common_tags4.oneLine`
|
|
31636
|
-
List JavaScript scripts parsed in the Gameface UI (scriptId + url + line count),
|
|
31637
|
-
|
|
32213
|
+
List JavaScript scripts parsed in the Gameface UI (scriptId + url + line count), optionally
|
|
32214
|
+
filtered by a url substring.
|
|
32215
|
+
Only scripts parsed after the debugger attached appear (Gameface does not replay
|
|
32216
|
+
scriptParsed); an empty list means attach first, then trigger a view reload to repopulate.
|
|
32217
|
+
Use the scriptId with game_debug_source.
|
|
31638
32218
|
`,
|
|
31639
32219
|
inputSchema: {
|
|
31640
|
-
filter: exports_external.string().optional().describe(
|
|
32220
|
+
filter: exports_external.string().optional().describe(`Only scripts whose url contains this substring`)
|
|
31641
32221
|
}
|
|
31642
32222
|
}, ({ filter }) => debug.listScripts(filter));
|
|
31643
32223
|
server.registerTool("game_debug_source", {
|
|
31644
|
-
title:
|
|
32224
|
+
title: `Get UI script source`,
|
|
31645
32225
|
description: import_common_tags4.oneLine`
|
|
31646
32226
|
Return the source of a script (by scriptId from game_debug_scripts), with line numbers.
|
|
31647
32227
|
Pass lineStart/lineEnd to get a range (large scripts are capped at 400 lines).
|
|
31648
32228
|
`,
|
|
31649
32229
|
inputSchema: {
|
|
31650
|
-
scriptId: exports_external.string().describe(
|
|
31651
|
-
lineStart: exports_external.number().int().min(1).optional().describe(
|
|
31652
|
-
lineEnd: exports_external.number().int().min(1).optional().describe(
|
|
32230
|
+
scriptId: exports_external.string().describe(`Script id from game_debug_scripts`),
|
|
32231
|
+
lineStart: exports_external.number().int().min(1).optional().describe(`First line (1-based)`),
|
|
32232
|
+
lineEnd: exports_external.number().int().min(1).optional().describe(`Last line (1-based)`)
|
|
31653
32233
|
}
|
|
31654
32234
|
}, ({ scriptId, lineStart, lineEnd }) => debug.getSource(scriptId, lineStart, lineEnd));
|
|
31655
32235
|
server.registerTool("game_debug_set_breakpoint", {
|
|
31656
|
-
title:
|
|
32236
|
+
title: `Set a breakpoint`,
|
|
31657
32237
|
description: import_common_tags4.oneLine`
|
|
31658
|
-
Set a breakpoint by url substring + line (1-based).
|
|
31659
|
-
only pause when it is truthy, which limits how often the
|
|
31660
|
-
|
|
32238
|
+
Set a breakpoint by url substring + line (1-based).
|
|
32239
|
+
Add a condition (JS expression) to only pause when it is truthy, which limits how often the
|
|
32240
|
+
UI freezes.
|
|
32241
|
+
Hitting it FREEZES the UI until you resume with game_debug_step.
|
|
31661
32242
|
`,
|
|
31662
32243
|
inputSchema: {
|
|
31663
|
-
urlContains: exports_external.string().describe(
|
|
31664
|
-
line: exports_external.number().int().min(1).describe(
|
|
31665
|
-
column: exports_external.number().int().min(0).optional().describe(
|
|
31666
|
-
condition: exports_external.string().optional().describe(
|
|
32244
|
+
urlContains: exports_external.string().describe(`Substring of the script url to break in`),
|
|
32245
|
+
line: exports_external.number().int().min(1).describe(`Line number (1-based)`),
|
|
32246
|
+
column: exports_external.number().int().min(0).optional().describe(`Column (0-based), optional`),
|
|
32247
|
+
condition: exports_external.string().optional().describe(`Optional JS condition; pause only when it evaluates truthy`)
|
|
31667
32248
|
}
|
|
31668
32249
|
}, ({ urlContains, line, column, condition }) => debug.setBreakpoint(urlContains, line, column, condition));
|
|
31669
32250
|
server.registerTool("game_debug_remove_breakpoint", {
|
|
31670
|
-
title:
|
|
31671
|
-
description:
|
|
32251
|
+
title: `Remove a breakpoint`,
|
|
32252
|
+
description: `Remove a breakpoint by its id (from game_debug_status), or pass 'all'.`,
|
|
31672
32253
|
inputSchema: {
|
|
31673
|
-
breakpoint: exports_external.string().describe(
|
|
32254
|
+
breakpoint: exports_external.string().describe(`Breakpoint id, or 'all'`)
|
|
31674
32255
|
}
|
|
31675
32256
|
}, ({ breakpoint }) => debug.removeBreakpoint(breakpoint));
|
|
31676
32257
|
server.registerTool("game_debug_pause_state", {
|
|
31677
|
-
title:
|
|
32258
|
+
title: `Inspect the paused stack`,
|
|
31678
32259
|
description: import_common_tags4.oneLine`
|
|
31679
|
-
When paused, return the call stack (frames with function + location + scope types).
|
|
31680
|
-
expandScopes to also list local/closure variables of each frame.
|
|
31681
|
-
otherwise.
|
|
32260
|
+
When paused, return the call stack (frames with function + location + scope types).
|
|
32261
|
+
Set expandScopes to also list local/closure variables of each frame.
|
|
32262
|
+
Returns 'not paused' otherwise.
|
|
31682
32263
|
`,
|
|
31683
32264
|
inputSchema: {
|
|
31684
|
-
expandScopes: exports_external.boolean().optional().describe(
|
|
32265
|
+
expandScopes: exports_external.boolean().optional().describe(`Also list local/closure variables per frame (default false)`)
|
|
31685
32266
|
}
|
|
31686
32267
|
}, ({ expandScopes }) => debug.pauseStateReport(expandScopes ?? false));
|
|
31687
32268
|
server.registerTool("game_debug_evaluate", {
|
|
31688
|
-
title:
|
|
32269
|
+
title: `Evaluate while debugging`,
|
|
31689
32270
|
description: import_common_tags4.oneLine`
|
|
31690
|
-
Evaluate a JS expression.
|
|
31691
|
-
|
|
31692
|
-
|
|
32271
|
+
Evaluate a JS expression.
|
|
32272
|
+
When paused, it runs in the selected call frame's scope (Debugger.evaluateOnCallFrame) so
|
|
32273
|
+
you can read locals; otherwise it runs globally.
|
|
32274
|
+
Prefer this over game_eval while paused.
|
|
31693
32275
|
`,
|
|
31694
32276
|
inputSchema: {
|
|
31695
|
-
expression: exports_external.string().describe(
|
|
31696
|
-
frameIndex: exports_external.number().int().min(0).optional().describe(
|
|
32277
|
+
expression: exports_external.string().describe(`JS expression to evaluate`),
|
|
32278
|
+
frameIndex: exports_external.number().int().min(0).optional().describe(`Call frame index to evaluate in when paused (default 0 = top)`)
|
|
31697
32279
|
}
|
|
31698
32280
|
}, ({ expression, frameIndex }) => debug.evaluate(expression, frameIndex));
|
|
31699
32281
|
server.registerTool("game_debug_step", {
|
|
31700
|
-
title:
|
|
32282
|
+
title: `Step / resume / pause execution`,
|
|
31701
32283
|
description: import_common_tags4.oneLine`
|
|
31702
|
-
Control paused execution: resume (unfreeze the UI), over
|
|
31703
|
-
|
|
32284
|
+
Control paused execution: resume (unfreeze the UI), over/into/out (step), or pause (break at
|
|
32285
|
+
the next statement).
|
|
32286
|
+
Stepping reports the new location.
|
|
31704
32287
|
`,
|
|
31705
32288
|
inputSchema: {
|
|
31706
|
-
action: exports_external.enum(["resume", "over", "into", "out", "pause"]).describe(
|
|
32289
|
+
action: exports_external.enum(["resume", "over", "into", "out", "pause"]).describe(`resume | over | into | out | pause`)
|
|
31707
32290
|
}
|
|
31708
32291
|
}, ({ action }) => debug.step(action));
|
|
31709
32292
|
const transport = new StdioServerTransport;
|