brainllm 10.5.2 → 11.0.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 +10 -6
- package/dist/index.js +672 -331
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/brainllm/SKILL.md +5 -4
package/dist/index.js
CHANGED
|
@@ -20,12 +20,14 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
20
20
|
}
|
|
21
21
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
22
|
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
24
|
+
for (let key of __getOwnPropNames(mod))
|
|
25
|
+
if (!__hasOwnProp.call(to, key))
|
|
26
|
+
__defProp(to, key, {
|
|
27
|
+
get: __accessProp.bind(mod, key),
|
|
28
|
+
enumerable: true
|
|
29
|
+
});
|
|
30
|
+
}
|
|
29
31
|
if (canCache)
|
|
30
32
|
cache.set(mod, to);
|
|
31
33
|
return to;
|
|
@@ -46,7 +48,7 @@ var __export = (target, all) => {
|
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/code.js
|
|
49
|
-
var require_code = __commonJS((exports)
|
|
51
|
+
var require_code = __commonJS(function(exports) {
|
|
50
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
53
|
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;
|
|
52
54
|
|
|
@@ -200,7 +202,7 @@ var require_code = __commonJS((exports) => {
|
|
|
200
202
|
});
|
|
201
203
|
|
|
202
204
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/scope.js
|
|
203
|
-
var require_scope = __commonJS((exports)
|
|
205
|
+
var require_scope = __commonJS(function(exports) {
|
|
204
206
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205
207
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
206
208
|
var code_1 = require_code();
|
|
@@ -346,7 +348,7 @@ var require_scope = __commonJS((exports) => {
|
|
|
346
348
|
});
|
|
347
349
|
|
|
348
350
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/codegen/index.js
|
|
349
|
-
var require_codegen = __commonJS((exports)
|
|
351
|
+
var require_codegen = __commonJS(function(exports) {
|
|
350
352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
351
353
|
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;
|
|
352
354
|
var code_1 = require_code();
|
|
@@ -1056,7 +1058,7 @@ var require_codegen = __commonJS((exports) => {
|
|
|
1056
1058
|
});
|
|
1057
1059
|
|
|
1058
1060
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/util.js
|
|
1059
|
-
var require_util = __commonJS((exports)
|
|
1061
|
+
var require_util = __commonJS(function(exports) {
|
|
1060
1062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1061
1063
|
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;
|
|
1062
1064
|
var codegen_1 = require_codegen();
|
|
@@ -1220,7 +1222,7 @@ var require_util = __commonJS((exports) => {
|
|
|
1220
1222
|
});
|
|
1221
1223
|
|
|
1222
1224
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/names.js
|
|
1223
|
-
var require_names = __commonJS((exports)
|
|
1225
|
+
var require_names = __commonJS(function(exports) {
|
|
1224
1226
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1225
1227
|
var codegen_1 = require_codegen();
|
|
1226
1228
|
var names = {
|
|
@@ -1245,7 +1247,7 @@ var require_names = __commonJS((exports) => {
|
|
|
1245
1247
|
});
|
|
1246
1248
|
|
|
1247
1249
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/errors.js
|
|
1248
|
-
var require_errors = __commonJS((exports)
|
|
1250
|
+
var require_errors = __commonJS(function(exports) {
|
|
1249
1251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1250
1252
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
1251
1253
|
var codegen_1 = require_codegen();
|
|
@@ -1363,7 +1365,7 @@ var require_errors = __commonJS((exports) => {
|
|
|
1363
1365
|
});
|
|
1364
1366
|
|
|
1365
1367
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1366
|
-
var require_boolSchema = __commonJS((exports)
|
|
1368
|
+
var require_boolSchema = __commonJS(function(exports) {
|
|
1367
1369
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1368
1370
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
1369
1371
|
var errors_1 = require_errors();
|
|
@@ -1411,7 +1413,7 @@ var require_boolSchema = __commonJS((exports) => {
|
|
|
1411
1413
|
});
|
|
1412
1414
|
|
|
1413
1415
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/rules.js
|
|
1414
|
-
var require_rules = __commonJS((exports)
|
|
1416
|
+
var require_rules = __commonJS(function(exports) {
|
|
1415
1417
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1416
1418
|
exports.getRules = exports.isJSONType = undefined;
|
|
1417
1419
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
@@ -1439,7 +1441,7 @@ var require_rules = __commonJS((exports) => {
|
|
|
1439
1441
|
});
|
|
1440
1442
|
|
|
1441
1443
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1442
|
-
var require_applicability = __commonJS((exports)
|
|
1444
|
+
var require_applicability = __commonJS(function(exports) {
|
|
1443
1445
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1444
1446
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
1445
1447
|
function schemaHasRulesForType({ schema, self }, type) {
|
|
@@ -1459,7 +1461,7 @@ var require_applicability = __commonJS((exports) => {
|
|
|
1459
1461
|
});
|
|
1460
1462
|
|
|
1461
1463
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1462
|
-
var require_dataType = __commonJS((exports)
|
|
1464
|
+
var require_dataType = __commonJS(function(exports) {
|
|
1463
1465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1464
1466
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
1465
1467
|
var rules_1 = require_rules();
|
|
@@ -1640,7 +1642,7 @@ var require_dataType = __commonJS((exports) => {
|
|
|
1640
1642
|
});
|
|
1641
1643
|
|
|
1642
1644
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1643
|
-
var require_defaults = __commonJS((exports)
|
|
1645
|
+
var require_defaults = __commonJS(function(exports) {
|
|
1644
1646
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1645
1647
|
exports.assignDefaults = undefined;
|
|
1646
1648
|
var codegen_1 = require_codegen();
|
|
@@ -1674,7 +1676,7 @@ var require_defaults = __commonJS((exports) => {
|
|
|
1674
1676
|
});
|
|
1675
1677
|
|
|
1676
1678
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/code.js
|
|
1677
|
-
var require_code2 = __commonJS((exports)
|
|
1679
|
+
var require_code2 = __commonJS(function(exports) {
|
|
1678
1680
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1679
1681
|
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;
|
|
1680
1682
|
var codegen_1 = require_codegen();
|
|
@@ -1803,7 +1805,7 @@ var require_code2 = __commonJS((exports) => {
|
|
|
1803
1805
|
});
|
|
1804
1806
|
|
|
1805
1807
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1806
|
-
var require_keyword = __commonJS((exports)
|
|
1808
|
+
var require_keyword = __commonJS(function(exports) {
|
|
1807
1809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1808
1810
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
1809
1811
|
var codegen_1 = require_codegen();
|
|
@@ -1918,7 +1920,7 @@ var require_keyword = __commonJS((exports) => {
|
|
|
1918
1920
|
});
|
|
1919
1921
|
|
|
1920
1922
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1921
|
-
var require_subschema = __commonJS((exports)
|
|
1923
|
+
var require_subschema = __commonJS(function(exports) {
|
|
1922
1924
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1923
1925
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
1924
1926
|
var codegen_1 = require_codegen();
|
|
@@ -1998,7 +2000,7 @@ var require_subschema = __commonJS((exports) => {
|
|
|
1998
2000
|
});
|
|
1999
2001
|
|
|
2000
2002
|
// node_modules/fast-deep-equal/index.js
|
|
2001
|
-
var require_fast_deep_equal = __commonJS((exports, module)
|
|
2003
|
+
var require_fast_deep_equal = __commonJS(function(exports, module) {
|
|
2002
2004
|
module.exports = function equal(a, b) {
|
|
2003
2005
|
if (a === b)
|
|
2004
2006
|
return true;
|
|
@@ -2040,7 +2042,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
|
2040
2042
|
});
|
|
2041
2043
|
|
|
2042
2044
|
// node_modules/json-schema-traverse/index.js
|
|
2043
|
-
var require_json_schema_traverse = __commonJS((exports, module)
|
|
2045
|
+
var require_json_schema_traverse = __commonJS(function(exports, module) {
|
|
2044
2046
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
2045
2047
|
if (typeof opts == "function") {
|
|
2046
2048
|
cb = opts;
|
|
@@ -2123,7 +2125,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
|
2123
2125
|
});
|
|
2124
2126
|
|
|
2125
2127
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/resolve.js
|
|
2126
|
-
var require_resolve = __commonJS((exports)
|
|
2128
|
+
var require_resolve = __commonJS(function(exports) {
|
|
2127
2129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2128
2130
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
2129
2131
|
var util_1 = require_util();
|
|
@@ -2276,7 +2278,7 @@ var require_resolve = __commonJS((exports) => {
|
|
|
2276
2278
|
});
|
|
2277
2279
|
|
|
2278
2280
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/validate/index.js
|
|
2279
|
-
var require_validate = __commonJS((exports)
|
|
2281
|
+
var require_validate = __commonJS(function(exports) {
|
|
2280
2282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2281
2283
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
2282
2284
|
var boolSchema_1 = require_boolSchema();
|
|
@@ -2781,7 +2783,7 @@ var require_validate = __commonJS((exports) => {
|
|
|
2781
2783
|
});
|
|
2782
2784
|
|
|
2783
2785
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/validation_error.js
|
|
2784
|
-
var require_validation_error = __commonJS((exports)
|
|
2786
|
+
var require_validation_error = __commonJS(function(exports) {
|
|
2785
2787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2786
2788
|
|
|
2787
2789
|
class ValidationError extends Error {
|
|
@@ -2795,7 +2797,7 @@ var require_validation_error = __commonJS((exports) => {
|
|
|
2795
2797
|
});
|
|
2796
2798
|
|
|
2797
2799
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/ref_error.js
|
|
2798
|
-
var require_ref_error = __commonJS((exports)
|
|
2800
|
+
var require_ref_error = __commonJS(function(exports) {
|
|
2799
2801
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2800
2802
|
var resolve_1 = require_resolve();
|
|
2801
2803
|
|
|
@@ -2810,7 +2812,7 @@ var require_ref_error = __commonJS((exports) => {
|
|
|
2810
2812
|
});
|
|
2811
2813
|
|
|
2812
2814
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/compile/index.js
|
|
2813
|
-
var require_compile = __commonJS((exports)
|
|
2815
|
+
var require_compile = __commonJS(function(exports) {
|
|
2814
2816
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2815
2817
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
2816
2818
|
var codegen_1 = require_codegen();
|
|
@@ -3031,7 +3033,7 @@ var require_compile = __commonJS((exports) => {
|
|
|
3031
3033
|
});
|
|
3032
3034
|
|
|
3033
3035
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/refs/data.json
|
|
3034
|
-
var require_data = __commonJS((exports, module)
|
|
3036
|
+
var require_data = __commonJS(function(exports, module) {
|
|
3035
3037
|
module.exports = {
|
|
3036
3038
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3037
3039
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3048,7 +3050,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
3048
3050
|
});
|
|
3049
3051
|
|
|
3050
3052
|
// node_modules/fast-uri/lib/utils.js
|
|
3051
|
-
var require_utils = __commonJS((exports, module)
|
|
3053
|
+
var require_utils = __commonJS(function(exports, module) {
|
|
3052
3054
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3053
3055
|
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);
|
|
3054
3056
|
function stringArrayToHexStripped(input) {
|
|
@@ -3303,7 +3305,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
3303
3305
|
});
|
|
3304
3306
|
|
|
3305
3307
|
// node_modules/fast-uri/lib/schemes.js
|
|
3306
|
-
var require_schemes = __commonJS((exports, module)
|
|
3308
|
+
var require_schemes = __commonJS(function(exports, module) {
|
|
3307
3309
|
var { isUUID } = require_utils();
|
|
3308
3310
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
3309
3311
|
var supportedSchemeNames = [
|
|
@@ -3477,7 +3479,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
3477
3479
|
});
|
|
3478
3480
|
|
|
3479
3481
|
// node_modules/fast-uri/index.js
|
|
3480
|
-
var require_fast_uri = __commonJS((exports, module)
|
|
3482
|
+
var require_fast_uri = __commonJS(function(exports, module) {
|
|
3481
3483
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
3482
3484
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3483
3485
|
function normalize(uri, options) {
|
|
@@ -3728,7 +3730,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
3728
3730
|
});
|
|
3729
3731
|
|
|
3730
3732
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/uri.js
|
|
3731
|
-
var require_uri = __commonJS((exports)
|
|
3733
|
+
var require_uri = __commonJS(function(exports) {
|
|
3732
3734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3733
3735
|
var uri = require_fast_uri();
|
|
3734
3736
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
@@ -3736,7 +3738,7 @@ var require_uri = __commonJS((exports) => {
|
|
|
3736
3738
|
});
|
|
3737
3739
|
|
|
3738
3740
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/core.js
|
|
3739
|
-
var require_core = __commonJS((exports)
|
|
3741
|
+
var require_core = __commonJS(function(exports) {
|
|
3740
3742
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3741
3743
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
3742
3744
|
var validate_1 = require_validate();
|
|
@@ -4329,7 +4331,7 @@ var require_core = __commonJS((exports) => {
|
|
|
4329
4331
|
});
|
|
4330
4332
|
|
|
4331
4333
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4332
|
-
var require_id = __commonJS((exports)
|
|
4334
|
+
var require_id = __commonJS(function(exports) {
|
|
4333
4335
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4334
4336
|
var def = {
|
|
4335
4337
|
keyword: "id",
|
|
@@ -4341,7 +4343,7 @@ var require_id = __commonJS((exports) => {
|
|
|
4341
4343
|
});
|
|
4342
4344
|
|
|
4343
4345
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4344
|
-
var require_ref = __commonJS((exports)
|
|
4346
|
+
var require_ref = __commonJS(function(exports) {
|
|
4345
4347
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4346
4348
|
exports.callRef = exports.getValidate = undefined;
|
|
4347
4349
|
var ref_error_1 = require_ref_error();
|
|
@@ -4460,7 +4462,7 @@ var require_ref = __commonJS((exports) => {
|
|
|
4460
4462
|
});
|
|
4461
4463
|
|
|
4462
4464
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4463
|
-
var require_core2 = __commonJS((exports)
|
|
4465
|
+
var require_core2 = __commonJS(function(exports) {
|
|
4464
4466
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4465
4467
|
var id_1 = require_id();
|
|
4466
4468
|
var ref_1 = require_ref();
|
|
@@ -4478,7 +4480,7 @@ var require_core2 = __commonJS((exports) => {
|
|
|
4478
4480
|
});
|
|
4479
4481
|
|
|
4480
4482
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4481
|
-
var require_limitNumber = __commonJS((exports)
|
|
4483
|
+
var require_limitNumber = __commonJS(function(exports) {
|
|
4482
4484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4483
4485
|
var codegen_1 = require_codegen();
|
|
4484
4486
|
var ops = codegen_1.operators;
|
|
@@ -4507,7 +4509,7 @@ var require_limitNumber = __commonJS((exports) => {
|
|
|
4507
4509
|
});
|
|
4508
4510
|
|
|
4509
4511
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4510
|
-
var require_multipleOf = __commonJS((exports)
|
|
4512
|
+
var require_multipleOf = __commonJS(function(exports) {
|
|
4511
4513
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4512
4514
|
var codegen_1 = require_codegen();
|
|
4513
4515
|
var error2 = {
|
|
@@ -4532,7 +4534,7 @@ var require_multipleOf = __commonJS((exports) => {
|
|
|
4532
4534
|
});
|
|
4533
4535
|
|
|
4534
4536
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4535
|
-
var require_ucs2length = __commonJS((exports)
|
|
4537
|
+
var require_ucs2length = __commonJS(function(exports) {
|
|
4536
4538
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4537
4539
|
function ucs2length(str) {
|
|
4538
4540
|
const len = str.length;
|
|
@@ -4555,7 +4557,7 @@ var require_ucs2length = __commonJS((exports) => {
|
|
|
4555
4557
|
});
|
|
4556
4558
|
|
|
4557
4559
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4558
|
-
var require_limitLength = __commonJS((exports)
|
|
4560
|
+
var require_limitLength = __commonJS(function(exports) {
|
|
4559
4561
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4560
4562
|
var codegen_1 = require_codegen();
|
|
4561
4563
|
var util_1 = require_util();
|
|
@@ -4584,7 +4586,7 @@ var require_limitLength = __commonJS((exports) => {
|
|
|
4584
4586
|
});
|
|
4585
4587
|
|
|
4586
4588
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4587
|
-
var require_pattern = __commonJS((exports)
|
|
4589
|
+
var require_pattern = __commonJS(function(exports) {
|
|
4588
4590
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4589
4591
|
var code_1 = require_code2();
|
|
4590
4592
|
var util_1 = require_util();
|
|
@@ -4618,7 +4620,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
4618
4620
|
});
|
|
4619
4621
|
|
|
4620
4622
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4621
|
-
var require_limitProperties = __commonJS((exports)
|
|
4623
|
+
var require_limitProperties = __commonJS(function(exports) {
|
|
4622
4624
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4623
4625
|
var codegen_1 = require_codegen();
|
|
4624
4626
|
var error2 = {
|
|
@@ -4644,7 +4646,7 @@ var require_limitProperties = __commonJS((exports) => {
|
|
|
4644
4646
|
});
|
|
4645
4647
|
|
|
4646
4648
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4647
|
-
var require_required = __commonJS((exports)
|
|
4649
|
+
var require_required = __commonJS(function(exports) {
|
|
4648
4650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4649
4651
|
var code_1 = require_code2();
|
|
4650
4652
|
var codegen_1 = require_codegen();
|
|
@@ -4723,7 +4725,7 @@ var require_required = __commonJS((exports) => {
|
|
|
4723
4725
|
});
|
|
4724
4726
|
|
|
4725
4727
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4726
|
-
var require_limitItems = __commonJS((exports)
|
|
4728
|
+
var require_limitItems = __commonJS(function(exports) {
|
|
4727
4729
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4728
4730
|
var codegen_1 = require_codegen();
|
|
4729
4731
|
var error2 = {
|
|
@@ -4749,7 +4751,7 @@ var require_limitItems = __commonJS((exports) => {
|
|
|
4749
4751
|
});
|
|
4750
4752
|
|
|
4751
4753
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/runtime/equal.js
|
|
4752
|
-
var require_equal = __commonJS((exports)
|
|
4754
|
+
var require_equal = __commonJS(function(exports) {
|
|
4753
4755
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4754
4756
|
var equal = require_fast_deep_equal();
|
|
4755
4757
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
@@ -4757,7 +4759,7 @@ var require_equal = __commonJS((exports) => {
|
|
|
4757
4759
|
});
|
|
4758
4760
|
|
|
4759
4761
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4760
|
-
var require_uniqueItems = __commonJS((exports)
|
|
4762
|
+
var require_uniqueItems = __commonJS(function(exports) {
|
|
4761
4763
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4762
4764
|
var dataType_1 = require_dataType();
|
|
4763
4765
|
var codegen_1 = require_codegen();
|
|
@@ -4821,7 +4823,7 @@ var require_uniqueItems = __commonJS((exports) => {
|
|
|
4821
4823
|
});
|
|
4822
4824
|
|
|
4823
4825
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4824
|
-
var require_const = __commonJS((exports)
|
|
4826
|
+
var require_const = __commonJS(function(exports) {
|
|
4825
4827
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4826
4828
|
var codegen_1 = require_codegen();
|
|
4827
4829
|
var util_1 = require_util();
|
|
@@ -4847,7 +4849,7 @@ var require_const = __commonJS((exports) => {
|
|
|
4847
4849
|
});
|
|
4848
4850
|
|
|
4849
4851
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4850
|
-
var require_enum = __commonJS((exports)
|
|
4852
|
+
var require_enum = __commonJS(function(exports) {
|
|
4851
4853
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4852
4854
|
var codegen_1 = require_codegen();
|
|
4853
4855
|
var util_1 = require_util();
|
|
@@ -4893,7 +4895,7 @@ var require_enum = __commonJS((exports) => {
|
|
|
4893
4895
|
});
|
|
4894
4896
|
|
|
4895
4897
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
4896
|
-
var require_validation = __commonJS((exports)
|
|
4898
|
+
var require_validation = __commonJS(function(exports) {
|
|
4897
4899
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4898
4900
|
var limitNumber_1 = require_limitNumber();
|
|
4899
4901
|
var multipleOf_1 = require_multipleOf();
|
|
@@ -4923,7 +4925,7 @@ var require_validation = __commonJS((exports) => {
|
|
|
4923
4925
|
});
|
|
4924
4926
|
|
|
4925
4927
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
4926
|
-
var require_additionalItems = __commonJS((exports)
|
|
4928
|
+
var require_additionalItems = __commonJS(function(exports) {
|
|
4927
4929
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4928
4930
|
exports.validateAdditionalItems = undefined;
|
|
4929
4931
|
var codegen_1 = require_codegen();
|
|
@@ -4973,7 +4975,7 @@ var require_additionalItems = __commonJS((exports) => {
|
|
|
4973
4975
|
});
|
|
4974
4976
|
|
|
4975
4977
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
4976
|
-
var require_items = __commonJS((exports)
|
|
4978
|
+
var require_items = __commonJS(function(exports) {
|
|
4977
4979
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4978
4980
|
exports.validateTuple = undefined;
|
|
4979
4981
|
var codegen_1 = require_codegen();
|
|
@@ -5027,7 +5029,7 @@ var require_items = __commonJS((exports) => {
|
|
|
5027
5029
|
});
|
|
5028
5030
|
|
|
5029
5031
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5030
|
-
var require_prefixItems = __commonJS((exports)
|
|
5032
|
+
var require_prefixItems = __commonJS(function(exports) {
|
|
5031
5033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5032
5034
|
var items_1 = require_items();
|
|
5033
5035
|
var def = {
|
|
@@ -5041,7 +5043,7 @@ var require_prefixItems = __commonJS((exports) => {
|
|
|
5041
5043
|
});
|
|
5042
5044
|
|
|
5043
5045
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5044
|
-
var require_items2020 = __commonJS((exports)
|
|
5046
|
+
var require_items2020 = __commonJS(function(exports) {
|
|
5045
5047
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5046
5048
|
var codegen_1 = require_codegen();
|
|
5047
5049
|
var util_1 = require_util();
|
|
@@ -5073,7 +5075,7 @@ var require_items2020 = __commonJS((exports) => {
|
|
|
5073
5075
|
});
|
|
5074
5076
|
|
|
5075
5077
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5076
|
-
var require_contains = __commonJS((exports)
|
|
5078
|
+
var require_contains = __commonJS(function(exports) {
|
|
5077
5079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5078
5080
|
var codegen_1 = require_codegen();
|
|
5079
5081
|
var util_1 = require_util();
|
|
@@ -5164,7 +5166,7 @@ var require_contains = __commonJS((exports) => {
|
|
|
5164
5166
|
});
|
|
5165
5167
|
|
|
5166
5168
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5167
|
-
var require_dependencies = __commonJS((exports)
|
|
5169
|
+
var require_dependencies = __commonJS(function(exports) {
|
|
5168
5170
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5169
5171
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
5170
5172
|
var codegen_1 = require_codegen();
|
|
@@ -5249,7 +5251,7 @@ var require_dependencies = __commonJS((exports) => {
|
|
|
5249
5251
|
});
|
|
5250
5252
|
|
|
5251
5253
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5252
|
-
var require_propertyNames = __commonJS((exports)
|
|
5254
|
+
var require_propertyNames = __commonJS(function(exports) {
|
|
5253
5255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5254
5256
|
var codegen_1 = require_codegen();
|
|
5255
5257
|
var util_1 = require_util();
|
|
@@ -5289,7 +5291,7 @@ var require_propertyNames = __commonJS((exports) => {
|
|
|
5289
5291
|
});
|
|
5290
5292
|
|
|
5291
5293
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5292
|
-
var require_additionalProperties = __commonJS((exports)
|
|
5294
|
+
var require_additionalProperties = __commonJS(function(exports) {
|
|
5293
5295
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5294
5296
|
var code_1 = require_code2();
|
|
5295
5297
|
var codegen_1 = require_codegen();
|
|
@@ -5392,7 +5394,7 @@ var require_additionalProperties = __commonJS((exports) => {
|
|
|
5392
5394
|
});
|
|
5393
5395
|
|
|
5394
5396
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5395
|
-
var require_properties = __commonJS((exports)
|
|
5397
|
+
var require_properties = __commonJS(function(exports) {
|
|
5396
5398
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5397
5399
|
var validate_1 = require_validate();
|
|
5398
5400
|
var code_1 = require_code2();
|
|
@@ -5447,7 +5449,7 @@ var require_properties = __commonJS((exports) => {
|
|
|
5447
5449
|
});
|
|
5448
5450
|
|
|
5449
5451
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5450
|
-
var require_patternProperties = __commonJS((exports)
|
|
5452
|
+
var require_patternProperties = __commonJS(function(exports) {
|
|
5451
5453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5452
5454
|
var code_1 = require_code2();
|
|
5453
5455
|
var codegen_1 = require_codegen();
|
|
@@ -5518,7 +5520,7 @@ var require_patternProperties = __commonJS((exports) => {
|
|
|
5518
5520
|
});
|
|
5519
5521
|
|
|
5520
5522
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5521
|
-
var require_not = __commonJS((exports)
|
|
5523
|
+
var require_not = __commonJS(function(exports) {
|
|
5522
5524
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5523
5525
|
var util_1 = require_util();
|
|
5524
5526
|
var def = {
|
|
@@ -5546,7 +5548,7 @@ var require_not = __commonJS((exports) => {
|
|
|
5546
5548
|
});
|
|
5547
5549
|
|
|
5548
5550
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5549
|
-
var require_anyOf = __commonJS((exports)
|
|
5551
|
+
var require_anyOf = __commonJS(function(exports) {
|
|
5550
5552
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5551
5553
|
var code_1 = require_code2();
|
|
5552
5554
|
var def = {
|
|
@@ -5560,7 +5562,7 @@ var require_anyOf = __commonJS((exports) => {
|
|
|
5560
5562
|
});
|
|
5561
5563
|
|
|
5562
5564
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5563
|
-
var require_oneOf = __commonJS((exports)
|
|
5565
|
+
var require_oneOf = __commonJS(function(exports) {
|
|
5564
5566
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5565
5567
|
var codegen_1 = require_codegen();
|
|
5566
5568
|
var util_1 = require_util();
|
|
@@ -5615,7 +5617,7 @@ var require_oneOf = __commonJS((exports) => {
|
|
|
5615
5617
|
});
|
|
5616
5618
|
|
|
5617
5619
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5618
|
-
var require_allOf = __commonJS((exports)
|
|
5620
|
+
var require_allOf = __commonJS(function(exports) {
|
|
5619
5621
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5620
5622
|
var util_1 = require_util();
|
|
5621
5623
|
var def = {
|
|
@@ -5639,7 +5641,7 @@ var require_allOf = __commonJS((exports) => {
|
|
|
5639
5641
|
});
|
|
5640
5642
|
|
|
5641
5643
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5642
|
-
var require_if = __commonJS((exports)
|
|
5644
|
+
var require_if = __commonJS(function(exports) {
|
|
5643
5645
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5644
5646
|
var codegen_1 = require_codegen();
|
|
5645
5647
|
var util_1 = require_util();
|
|
@@ -5705,7 +5707,7 @@ var require_if = __commonJS((exports) => {
|
|
|
5705
5707
|
});
|
|
5706
5708
|
|
|
5707
5709
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5708
|
-
var require_thenElse = __commonJS((exports)
|
|
5710
|
+
var require_thenElse = __commonJS(function(exports) {
|
|
5709
5711
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5710
5712
|
var util_1 = require_util();
|
|
5711
5713
|
var def = {
|
|
@@ -5720,7 +5722,7 @@ var require_thenElse = __commonJS((exports) => {
|
|
|
5720
5722
|
});
|
|
5721
5723
|
|
|
5722
5724
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5723
|
-
var require_applicator = __commonJS((exports)
|
|
5725
|
+
var require_applicator = __commonJS(function(exports) {
|
|
5724
5726
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5725
5727
|
var additionalItems_1 = require_additionalItems();
|
|
5726
5728
|
var prefixItems_1 = require_prefixItems();
|
|
@@ -5763,7 +5765,7 @@ var require_applicator = __commonJS((exports) => {
|
|
|
5763
5765
|
});
|
|
5764
5766
|
|
|
5765
5767
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/format/format.js
|
|
5766
|
-
var require_format = __commonJS((exports)
|
|
5768
|
+
var require_format = __commonJS(function(exports) {
|
|
5767
5769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5768
5770
|
var codegen_1 = require_codegen();
|
|
5769
5771
|
var error2 = {
|
|
@@ -5850,7 +5852,7 @@ var require_format = __commonJS((exports) => {
|
|
|
5850
5852
|
});
|
|
5851
5853
|
|
|
5852
5854
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/format/index.js
|
|
5853
|
-
var require_format2 = __commonJS((exports)
|
|
5855
|
+
var require_format2 = __commonJS(function(exports) {
|
|
5854
5856
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5855
5857
|
var format_1 = require_format();
|
|
5856
5858
|
var format = [format_1.default];
|
|
@@ -5858,7 +5860,7 @@ var require_format2 = __commonJS((exports) => {
|
|
|
5858
5860
|
});
|
|
5859
5861
|
|
|
5860
5862
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/metadata.js
|
|
5861
|
-
var require_metadata = __commonJS((exports)
|
|
5863
|
+
var require_metadata = __commonJS(function(exports) {
|
|
5862
5864
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5863
5865
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
5864
5866
|
exports.metadataVocabulary = [
|
|
@@ -5878,7 +5880,7 @@ var require_metadata = __commonJS((exports) => {
|
|
|
5878
5880
|
});
|
|
5879
5881
|
|
|
5880
5882
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/draft7.js
|
|
5881
|
-
var require_draft7 = __commonJS((exports)
|
|
5883
|
+
var require_draft7 = __commonJS(function(exports) {
|
|
5882
5884
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5883
5885
|
var core_1 = require_core2();
|
|
5884
5886
|
var validation_1 = require_validation();
|
|
@@ -5897,7 +5899,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
5897
5899
|
});
|
|
5898
5900
|
|
|
5899
5901
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
5900
|
-
var require_types = __commonJS((exports)
|
|
5902
|
+
var require_types = __commonJS(function(exports) {
|
|
5901
5903
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5902
5904
|
exports.DiscrError = undefined;
|
|
5903
5905
|
var DiscrError;
|
|
@@ -5908,7 +5910,7 @@ var require_types = __commonJS((exports) => {
|
|
|
5908
5910
|
});
|
|
5909
5911
|
|
|
5910
5912
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
5911
|
-
var require_discriminator = __commonJS((exports)
|
|
5913
|
+
var require_discriminator = __commonJS(function(exports) {
|
|
5912
5914
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5913
5915
|
var codegen_1 = require_codegen();
|
|
5914
5916
|
var types_1 = require_types();
|
|
@@ -6010,7 +6012,7 @@ var require_discriminator = __commonJS((exports) => {
|
|
|
6010
6012
|
});
|
|
6011
6013
|
|
|
6012
6014
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6013
|
-
var require_json_schema_draft_07 = __commonJS((exports, module)
|
|
6015
|
+
var require_json_schema_draft_07 = __commonJS(function(exports, module) {
|
|
6014
6016
|
module.exports = {
|
|
6015
6017
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6016
6018
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6165,7 +6167,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
|
6165
6167
|
});
|
|
6166
6168
|
|
|
6167
6169
|
// node_modules/@modelcontextprotocol/sdk/node_modules/ajv/dist/ajv.js
|
|
6168
|
-
var require_ajv = __commonJS((exports, module)
|
|
6170
|
+
var require_ajv = __commonJS(function(exports, module) {
|
|
6169
6171
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6170
6172
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
6171
6173
|
var core_1 = require_core();
|
|
@@ -6233,7 +6235,7 @@ var require_ajv = __commonJS((exports, module) => {
|
|
|
6233
6235
|
});
|
|
6234
6236
|
|
|
6235
6237
|
// node_modules/ajv-formats/dist/formats.js
|
|
6236
|
-
var require_formats = __commonJS((exports)
|
|
6238
|
+
var require_formats = __commonJS(function(exports) {
|
|
6237
6239
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6238
6240
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
6239
6241
|
function fmtDef(validate, compare) {
|
|
@@ -6410,7 +6412,7 @@ var require_formats = __commonJS((exports) => {
|
|
|
6410
6412
|
});
|
|
6411
6413
|
|
|
6412
6414
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js
|
|
6413
|
-
var require_code3 = __commonJS((exports)
|
|
6415
|
+
var require_code3 = __commonJS(function(exports) {
|
|
6414
6416
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6415
6417
|
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;
|
|
6416
6418
|
|
|
@@ -6564,7 +6566,7 @@ var require_code3 = __commonJS((exports) => {
|
|
|
6564
6566
|
});
|
|
6565
6567
|
|
|
6566
6568
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js
|
|
6567
|
-
var require_scope2 = __commonJS((exports)
|
|
6569
|
+
var require_scope2 = __commonJS(function(exports) {
|
|
6568
6570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6569
6571
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
6570
6572
|
var code_1 = require_code3();
|
|
@@ -6710,7 +6712,7 @@ var require_scope2 = __commonJS((exports) => {
|
|
|
6710
6712
|
});
|
|
6711
6713
|
|
|
6712
6714
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js
|
|
6713
|
-
var require_codegen2 = __commonJS((exports)
|
|
6715
|
+
var require_codegen2 = __commonJS(function(exports) {
|
|
6714
6716
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6715
6717
|
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;
|
|
6716
6718
|
var code_1 = require_code3();
|
|
@@ -7420,7 +7422,7 @@ var require_codegen2 = __commonJS((exports) => {
|
|
|
7420
7422
|
});
|
|
7421
7423
|
|
|
7422
7424
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js
|
|
7423
|
-
var require_util2 = __commonJS((exports)
|
|
7425
|
+
var require_util2 = __commonJS(function(exports) {
|
|
7424
7426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7425
7427
|
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;
|
|
7426
7428
|
var codegen_1 = require_codegen2();
|
|
@@ -7584,7 +7586,7 @@ var require_util2 = __commonJS((exports) => {
|
|
|
7584
7586
|
});
|
|
7585
7587
|
|
|
7586
7588
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js
|
|
7587
|
-
var require_names2 = __commonJS((exports)
|
|
7589
|
+
var require_names2 = __commonJS(function(exports) {
|
|
7588
7590
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7589
7591
|
var codegen_1 = require_codegen2();
|
|
7590
7592
|
var names = {
|
|
@@ -7609,7 +7611,7 @@ var require_names2 = __commonJS((exports) => {
|
|
|
7609
7611
|
});
|
|
7610
7612
|
|
|
7611
7613
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js
|
|
7612
|
-
var require_errors2 = __commonJS((exports)
|
|
7614
|
+
var require_errors2 = __commonJS(function(exports) {
|
|
7613
7615
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7614
7616
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
7615
7617
|
var codegen_1 = require_codegen2();
|
|
@@ -7727,7 +7729,7 @@ var require_errors2 = __commonJS((exports) => {
|
|
|
7727
7729
|
});
|
|
7728
7730
|
|
|
7729
7731
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
7730
|
-
var require_boolSchema2 = __commonJS((exports)
|
|
7732
|
+
var require_boolSchema2 = __commonJS(function(exports) {
|
|
7731
7733
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7732
7734
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
7733
7735
|
var errors_1 = require_errors2();
|
|
@@ -7775,7 +7777,7 @@ var require_boolSchema2 = __commonJS((exports) => {
|
|
|
7775
7777
|
});
|
|
7776
7778
|
|
|
7777
7779
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.js
|
|
7778
|
-
var require_rules2 = __commonJS((exports)
|
|
7780
|
+
var require_rules2 = __commonJS(function(exports) {
|
|
7779
7781
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7780
7782
|
exports.getRules = exports.isJSONType = undefined;
|
|
7781
7783
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
@@ -7803,7 +7805,7 @@ var require_rules2 = __commonJS((exports) => {
|
|
|
7803
7805
|
});
|
|
7804
7806
|
|
|
7805
7807
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/applicability.js
|
|
7806
|
-
var require_applicability2 = __commonJS((exports)
|
|
7808
|
+
var require_applicability2 = __commonJS(function(exports) {
|
|
7807
7809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7808
7810
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
7809
7811
|
function schemaHasRulesForType({ schema, self }, type) {
|
|
@@ -7823,7 +7825,7 @@ var require_applicability2 = __commonJS((exports) => {
|
|
|
7823
7825
|
});
|
|
7824
7826
|
|
|
7825
7827
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js
|
|
7826
|
-
var require_dataType2 = __commonJS((exports)
|
|
7828
|
+
var require_dataType2 = __commonJS(function(exports) {
|
|
7827
7829
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7828
7830
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
7829
7831
|
var rules_1 = require_rules2();
|
|
@@ -8004,7 +8006,7 @@ var require_dataType2 = __commonJS((exports) => {
|
|
|
8004
8006
|
});
|
|
8005
8007
|
|
|
8006
8008
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js
|
|
8007
|
-
var require_defaults2 = __commonJS((exports)
|
|
8009
|
+
var require_defaults2 = __commonJS(function(exports) {
|
|
8008
8010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8009
8011
|
exports.assignDefaults = undefined;
|
|
8010
8012
|
var codegen_1 = require_codegen2();
|
|
@@ -8038,7 +8040,7 @@ var require_defaults2 = __commonJS((exports) => {
|
|
|
8038
8040
|
});
|
|
8039
8041
|
|
|
8040
8042
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js
|
|
8041
|
-
var require_code4 = __commonJS((exports)
|
|
8043
|
+
var require_code4 = __commonJS(function(exports) {
|
|
8042
8044
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8043
8045
|
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;
|
|
8044
8046
|
var codegen_1 = require_codegen2();
|
|
@@ -8167,7 +8169,7 @@ var require_code4 = __commonJS((exports) => {
|
|
|
8167
8169
|
});
|
|
8168
8170
|
|
|
8169
8171
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js
|
|
8170
|
-
var require_keyword2 = __commonJS((exports)
|
|
8172
|
+
var require_keyword2 = __commonJS(function(exports) {
|
|
8171
8173
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8172
8174
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
8173
8175
|
var codegen_1 = require_codegen2();
|
|
@@ -8282,7 +8284,7 @@ var require_keyword2 = __commonJS((exports) => {
|
|
|
8282
8284
|
});
|
|
8283
8285
|
|
|
8284
8286
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js
|
|
8285
|
-
var require_subschema2 = __commonJS((exports)
|
|
8287
|
+
var require_subschema2 = __commonJS(function(exports) {
|
|
8286
8288
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8287
8289
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
8288
8290
|
var codegen_1 = require_codegen2();
|
|
@@ -8362,7 +8364,7 @@ var require_subschema2 = __commonJS((exports) => {
|
|
|
8362
8364
|
});
|
|
8363
8365
|
|
|
8364
8366
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js
|
|
8365
|
-
var require_resolve2 = __commonJS((exports)
|
|
8367
|
+
var require_resolve2 = __commonJS(function(exports) {
|
|
8366
8368
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8367
8369
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
8368
8370
|
var util_1 = require_util2();
|
|
@@ -8515,7 +8517,7 @@ var require_resolve2 = __commonJS((exports) => {
|
|
|
8515
8517
|
});
|
|
8516
8518
|
|
|
8517
8519
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js
|
|
8518
|
-
var require_validate2 = __commonJS((exports)
|
|
8520
|
+
var require_validate2 = __commonJS(function(exports) {
|
|
8519
8521
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8520
8522
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
8521
8523
|
var boolSchema_1 = require_boolSchema2();
|
|
@@ -9020,7 +9022,7 @@ var require_validate2 = __commonJS((exports) => {
|
|
|
9020
9022
|
});
|
|
9021
9023
|
|
|
9022
9024
|
// node_modules/ajv-formats/node_modules/ajv/dist/runtime/validation_error.js
|
|
9023
|
-
var require_validation_error2 = __commonJS((exports)
|
|
9025
|
+
var require_validation_error2 = __commonJS(function(exports) {
|
|
9024
9026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9025
9027
|
|
|
9026
9028
|
class ValidationError extends Error {
|
|
@@ -9034,7 +9036,7 @@ var require_validation_error2 = __commonJS((exports) => {
|
|
|
9034
9036
|
});
|
|
9035
9037
|
|
|
9036
9038
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/ref_error.js
|
|
9037
|
-
var require_ref_error2 = __commonJS((exports)
|
|
9039
|
+
var require_ref_error2 = __commonJS(function(exports) {
|
|
9038
9040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9039
9041
|
var resolve_1 = require_resolve2();
|
|
9040
9042
|
|
|
@@ -9049,7 +9051,7 @@ var require_ref_error2 = __commonJS((exports) => {
|
|
|
9049
9051
|
});
|
|
9050
9052
|
|
|
9051
9053
|
// node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js
|
|
9052
|
-
var require_compile2 = __commonJS((exports)
|
|
9054
|
+
var require_compile2 = __commonJS(function(exports) {
|
|
9053
9055
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9054
9056
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
9055
9057
|
var codegen_1 = require_codegen2();
|
|
@@ -9270,7 +9272,7 @@ var require_compile2 = __commonJS((exports) => {
|
|
|
9270
9272
|
});
|
|
9271
9273
|
|
|
9272
9274
|
// node_modules/ajv-formats/node_modules/ajv/dist/refs/data.json
|
|
9273
|
-
var require_data2 = __commonJS((exports, module)
|
|
9275
|
+
var require_data2 = __commonJS(function(exports, module) {
|
|
9274
9276
|
module.exports = {
|
|
9275
9277
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
9276
9278
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -9287,7 +9289,7 @@ var require_data2 = __commonJS((exports, module) => {
|
|
|
9287
9289
|
});
|
|
9288
9290
|
|
|
9289
9291
|
// node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.js
|
|
9290
|
-
var require_uri2 = __commonJS((exports)
|
|
9292
|
+
var require_uri2 = __commonJS(function(exports) {
|
|
9291
9293
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9292
9294
|
var uri = require_fast_uri();
|
|
9293
9295
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
@@ -9295,7 +9297,7 @@ var require_uri2 = __commonJS((exports) => {
|
|
|
9295
9297
|
});
|
|
9296
9298
|
|
|
9297
9299
|
// node_modules/ajv-formats/node_modules/ajv/dist/core.js
|
|
9298
|
-
var require_core3 = __commonJS((exports)
|
|
9300
|
+
var require_core3 = __commonJS(function(exports) {
|
|
9299
9301
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9300
9302
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
9301
9303
|
var validate_1 = require_validate2();
|
|
@@ -9888,7 +9890,7 @@ var require_core3 = __commonJS((exports) => {
|
|
|
9888
9890
|
});
|
|
9889
9891
|
|
|
9890
9892
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/id.js
|
|
9891
|
-
var require_id2 = __commonJS((exports)
|
|
9893
|
+
var require_id2 = __commonJS(function(exports) {
|
|
9892
9894
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9893
9895
|
var def = {
|
|
9894
9896
|
keyword: "id",
|
|
@@ -9900,7 +9902,7 @@ var require_id2 = __commonJS((exports) => {
|
|
|
9900
9902
|
});
|
|
9901
9903
|
|
|
9902
9904
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
9903
|
-
var require_ref2 = __commonJS((exports)
|
|
9905
|
+
var require_ref2 = __commonJS(function(exports) {
|
|
9904
9906
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9905
9907
|
exports.callRef = exports.getValidate = undefined;
|
|
9906
9908
|
var ref_error_1 = require_ref_error2();
|
|
@@ -10019,7 +10021,7 @@ var require_ref2 = __commonJS((exports) => {
|
|
|
10019
10021
|
});
|
|
10020
10022
|
|
|
10021
10023
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/index.js
|
|
10022
|
-
var require_core4 = __commonJS((exports)
|
|
10024
|
+
var require_core4 = __commonJS(function(exports) {
|
|
10023
10025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10024
10026
|
var id_1 = require_id2();
|
|
10025
10027
|
var ref_1 = require_ref2();
|
|
@@ -10037,7 +10039,7 @@ var require_core4 = __commonJS((exports) => {
|
|
|
10037
10039
|
});
|
|
10038
10040
|
|
|
10039
10041
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
10040
|
-
var require_limitNumber2 = __commonJS((exports)
|
|
10042
|
+
var require_limitNumber2 = __commonJS(function(exports) {
|
|
10041
10043
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10042
10044
|
var codegen_1 = require_codegen2();
|
|
10043
10045
|
var ops = codegen_1.operators;
|
|
@@ -10066,7 +10068,7 @@ var require_limitNumber2 = __commonJS((exports) => {
|
|
|
10066
10068
|
});
|
|
10067
10069
|
|
|
10068
10070
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
10069
|
-
var require_multipleOf2 = __commonJS((exports)
|
|
10071
|
+
var require_multipleOf2 = __commonJS(function(exports) {
|
|
10070
10072
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10071
10073
|
var codegen_1 = require_codegen2();
|
|
10072
10074
|
var error2 = {
|
|
@@ -10091,7 +10093,7 @@ var require_multipleOf2 = __commonJS((exports) => {
|
|
|
10091
10093
|
});
|
|
10092
10094
|
|
|
10093
10095
|
// node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js
|
|
10094
|
-
var require_ucs2length2 = __commonJS((exports)
|
|
10096
|
+
var require_ucs2length2 = __commonJS(function(exports) {
|
|
10095
10097
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10096
10098
|
function ucs2length(str) {
|
|
10097
10099
|
const len = str.length;
|
|
@@ -10114,7 +10116,7 @@ var require_ucs2length2 = __commonJS((exports) => {
|
|
|
10114
10116
|
});
|
|
10115
10117
|
|
|
10116
10118
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
10117
|
-
var require_limitLength2 = __commonJS((exports)
|
|
10119
|
+
var require_limitLength2 = __commonJS(function(exports) {
|
|
10118
10120
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10119
10121
|
var codegen_1 = require_codegen2();
|
|
10120
10122
|
var util_1 = require_util2();
|
|
@@ -10143,7 +10145,7 @@ var require_limitLength2 = __commonJS((exports) => {
|
|
|
10143
10145
|
});
|
|
10144
10146
|
|
|
10145
10147
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
10146
|
-
var require_pattern2 = __commonJS((exports)
|
|
10148
|
+
var require_pattern2 = __commonJS(function(exports) {
|
|
10147
10149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10148
10150
|
var code_1 = require_code4();
|
|
10149
10151
|
var util_1 = require_util2();
|
|
@@ -10177,7 +10179,7 @@ var require_pattern2 = __commonJS((exports) => {
|
|
|
10177
10179
|
});
|
|
10178
10180
|
|
|
10179
10181
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
10180
|
-
var require_limitProperties2 = __commonJS((exports)
|
|
10182
|
+
var require_limitProperties2 = __commonJS(function(exports) {
|
|
10181
10183
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10182
10184
|
var codegen_1 = require_codegen2();
|
|
10183
10185
|
var error2 = {
|
|
@@ -10203,7 +10205,7 @@ var require_limitProperties2 = __commonJS((exports) => {
|
|
|
10203
10205
|
});
|
|
10204
10206
|
|
|
10205
10207
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
10206
|
-
var require_required2 = __commonJS((exports)
|
|
10208
|
+
var require_required2 = __commonJS(function(exports) {
|
|
10207
10209
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10208
10210
|
var code_1 = require_code4();
|
|
10209
10211
|
var codegen_1 = require_codegen2();
|
|
@@ -10282,7 +10284,7 @@ var require_required2 = __commonJS((exports) => {
|
|
|
10282
10284
|
});
|
|
10283
10285
|
|
|
10284
10286
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
10285
|
-
var require_limitItems2 = __commonJS((exports)
|
|
10287
|
+
var require_limitItems2 = __commonJS(function(exports) {
|
|
10286
10288
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10287
10289
|
var codegen_1 = require_codegen2();
|
|
10288
10290
|
var error2 = {
|
|
@@ -10308,7 +10310,7 @@ var require_limitItems2 = __commonJS((exports) => {
|
|
|
10308
10310
|
});
|
|
10309
10311
|
|
|
10310
10312
|
// node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.js
|
|
10311
|
-
var require_equal2 = __commonJS((exports)
|
|
10313
|
+
var require_equal2 = __commonJS(function(exports) {
|
|
10312
10314
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10313
10315
|
var equal = require_fast_deep_equal();
|
|
10314
10316
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
@@ -10316,7 +10318,7 @@ var require_equal2 = __commonJS((exports) => {
|
|
|
10316
10318
|
});
|
|
10317
10319
|
|
|
10318
10320
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
10319
|
-
var require_uniqueItems2 = __commonJS((exports)
|
|
10321
|
+
var require_uniqueItems2 = __commonJS(function(exports) {
|
|
10320
10322
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10321
10323
|
var dataType_1 = require_dataType2();
|
|
10322
10324
|
var codegen_1 = require_codegen2();
|
|
@@ -10380,7 +10382,7 @@ var require_uniqueItems2 = __commonJS((exports) => {
|
|
|
10380
10382
|
});
|
|
10381
10383
|
|
|
10382
10384
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
10383
|
-
var require_const2 = __commonJS((exports)
|
|
10385
|
+
var require_const2 = __commonJS(function(exports) {
|
|
10384
10386
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10385
10387
|
var codegen_1 = require_codegen2();
|
|
10386
10388
|
var util_1 = require_util2();
|
|
@@ -10406,7 +10408,7 @@ var require_const2 = __commonJS((exports) => {
|
|
|
10406
10408
|
});
|
|
10407
10409
|
|
|
10408
10410
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
10409
|
-
var require_enum2 = __commonJS((exports)
|
|
10411
|
+
var require_enum2 = __commonJS(function(exports) {
|
|
10410
10412
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10411
10413
|
var codegen_1 = require_codegen2();
|
|
10412
10414
|
var util_1 = require_util2();
|
|
@@ -10452,7 +10454,7 @@ var require_enum2 = __commonJS((exports) => {
|
|
|
10452
10454
|
});
|
|
10453
10455
|
|
|
10454
10456
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
10455
|
-
var require_validation2 = __commonJS((exports)
|
|
10457
|
+
var require_validation2 = __commonJS(function(exports) {
|
|
10456
10458
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10457
10459
|
var limitNumber_1 = require_limitNumber2();
|
|
10458
10460
|
var multipleOf_1 = require_multipleOf2();
|
|
@@ -10482,7 +10484,7 @@ var require_validation2 = __commonJS((exports) => {
|
|
|
10482
10484
|
});
|
|
10483
10485
|
|
|
10484
10486
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
10485
|
-
var require_additionalItems2 = __commonJS((exports)
|
|
10487
|
+
var require_additionalItems2 = __commonJS(function(exports) {
|
|
10486
10488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10487
10489
|
exports.validateAdditionalItems = undefined;
|
|
10488
10490
|
var codegen_1 = require_codegen2();
|
|
@@ -10532,7 +10534,7 @@ var require_additionalItems2 = __commonJS((exports) => {
|
|
|
10532
10534
|
});
|
|
10533
10535
|
|
|
10534
10536
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
10535
|
-
var require_items2 = __commonJS((exports)
|
|
10537
|
+
var require_items2 = __commonJS(function(exports) {
|
|
10536
10538
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10537
10539
|
exports.validateTuple = undefined;
|
|
10538
10540
|
var codegen_1 = require_codegen2();
|
|
@@ -10586,7 +10588,7 @@ var require_items2 = __commonJS((exports) => {
|
|
|
10586
10588
|
});
|
|
10587
10589
|
|
|
10588
10590
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
10589
|
-
var require_prefixItems2 = __commonJS((exports)
|
|
10591
|
+
var require_prefixItems2 = __commonJS(function(exports) {
|
|
10590
10592
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10591
10593
|
var items_1 = require_items2();
|
|
10592
10594
|
var def = {
|
|
@@ -10600,7 +10602,7 @@ var require_prefixItems2 = __commonJS((exports) => {
|
|
|
10600
10602
|
});
|
|
10601
10603
|
|
|
10602
10604
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
10603
|
-
var require_items20202 = __commonJS((exports)
|
|
10605
|
+
var require_items20202 = __commonJS(function(exports) {
|
|
10604
10606
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10605
10607
|
var codegen_1 = require_codegen2();
|
|
10606
10608
|
var util_1 = require_util2();
|
|
@@ -10632,7 +10634,7 @@ var require_items20202 = __commonJS((exports) => {
|
|
|
10632
10634
|
});
|
|
10633
10635
|
|
|
10634
10636
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
10635
|
-
var require_contains2 = __commonJS((exports)
|
|
10637
|
+
var require_contains2 = __commonJS(function(exports) {
|
|
10636
10638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10637
10639
|
var codegen_1 = require_codegen2();
|
|
10638
10640
|
var util_1 = require_util2();
|
|
@@ -10723,7 +10725,7 @@ var require_contains2 = __commonJS((exports) => {
|
|
|
10723
10725
|
});
|
|
10724
10726
|
|
|
10725
10727
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
10726
|
-
var require_dependencies2 = __commonJS((exports)
|
|
10728
|
+
var require_dependencies2 = __commonJS(function(exports) {
|
|
10727
10729
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10728
10730
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
10729
10731
|
var codegen_1 = require_codegen2();
|
|
@@ -10808,7 +10810,7 @@ var require_dependencies2 = __commonJS((exports) => {
|
|
|
10808
10810
|
});
|
|
10809
10811
|
|
|
10810
10812
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
10811
|
-
var require_propertyNames2 = __commonJS((exports)
|
|
10813
|
+
var require_propertyNames2 = __commonJS(function(exports) {
|
|
10812
10814
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10813
10815
|
var codegen_1 = require_codegen2();
|
|
10814
10816
|
var util_1 = require_util2();
|
|
@@ -10848,7 +10850,7 @@ var require_propertyNames2 = __commonJS((exports) => {
|
|
|
10848
10850
|
});
|
|
10849
10851
|
|
|
10850
10852
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
10851
|
-
var require_additionalProperties2 = __commonJS((exports)
|
|
10853
|
+
var require_additionalProperties2 = __commonJS(function(exports) {
|
|
10852
10854
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10853
10855
|
var code_1 = require_code4();
|
|
10854
10856
|
var codegen_1 = require_codegen2();
|
|
@@ -10951,7 +10953,7 @@ var require_additionalProperties2 = __commonJS((exports) => {
|
|
|
10951
10953
|
});
|
|
10952
10954
|
|
|
10953
10955
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
10954
|
-
var require_properties2 = __commonJS((exports)
|
|
10956
|
+
var require_properties2 = __commonJS(function(exports) {
|
|
10955
10957
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10956
10958
|
var validate_1 = require_validate2();
|
|
10957
10959
|
var code_1 = require_code4();
|
|
@@ -11006,7 +11008,7 @@ var require_properties2 = __commonJS((exports) => {
|
|
|
11006
11008
|
});
|
|
11007
11009
|
|
|
11008
11010
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
11009
|
-
var require_patternProperties2 = __commonJS((exports)
|
|
11011
|
+
var require_patternProperties2 = __commonJS(function(exports) {
|
|
11010
11012
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11011
11013
|
var code_1 = require_code4();
|
|
11012
11014
|
var codegen_1 = require_codegen2();
|
|
@@ -11077,7 +11079,7 @@ var require_patternProperties2 = __commonJS((exports) => {
|
|
|
11077
11079
|
});
|
|
11078
11080
|
|
|
11079
11081
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
11080
|
-
var require_not2 = __commonJS((exports)
|
|
11082
|
+
var require_not2 = __commonJS(function(exports) {
|
|
11081
11083
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11082
11084
|
var util_1 = require_util2();
|
|
11083
11085
|
var def = {
|
|
@@ -11105,7 +11107,7 @@ var require_not2 = __commonJS((exports) => {
|
|
|
11105
11107
|
});
|
|
11106
11108
|
|
|
11107
11109
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
11108
|
-
var require_anyOf2 = __commonJS((exports)
|
|
11110
|
+
var require_anyOf2 = __commonJS(function(exports) {
|
|
11109
11111
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11110
11112
|
var code_1 = require_code4();
|
|
11111
11113
|
var def = {
|
|
@@ -11119,7 +11121,7 @@ var require_anyOf2 = __commonJS((exports) => {
|
|
|
11119
11121
|
});
|
|
11120
11122
|
|
|
11121
11123
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
11122
|
-
var require_oneOf2 = __commonJS((exports)
|
|
11124
|
+
var require_oneOf2 = __commonJS(function(exports) {
|
|
11123
11125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11124
11126
|
var codegen_1 = require_codegen2();
|
|
11125
11127
|
var util_1 = require_util2();
|
|
@@ -11174,7 +11176,7 @@ var require_oneOf2 = __commonJS((exports) => {
|
|
|
11174
11176
|
});
|
|
11175
11177
|
|
|
11176
11178
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
11177
|
-
var require_allOf2 = __commonJS((exports)
|
|
11179
|
+
var require_allOf2 = __commonJS(function(exports) {
|
|
11178
11180
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11179
11181
|
var util_1 = require_util2();
|
|
11180
11182
|
var def = {
|
|
@@ -11198,7 +11200,7 @@ var require_allOf2 = __commonJS((exports) => {
|
|
|
11198
11200
|
});
|
|
11199
11201
|
|
|
11200
11202
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
11201
|
-
var require_if2 = __commonJS((exports)
|
|
11203
|
+
var require_if2 = __commonJS(function(exports) {
|
|
11202
11204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11203
11205
|
var codegen_1 = require_codegen2();
|
|
11204
11206
|
var util_1 = require_util2();
|
|
@@ -11264,7 +11266,7 @@ var require_if2 = __commonJS((exports) => {
|
|
|
11264
11266
|
});
|
|
11265
11267
|
|
|
11266
11268
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
11267
|
-
var require_thenElse2 = __commonJS((exports)
|
|
11269
|
+
var require_thenElse2 = __commonJS(function(exports) {
|
|
11268
11270
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11269
11271
|
var util_1 = require_util2();
|
|
11270
11272
|
var def = {
|
|
@@ -11279,7 +11281,7 @@ var require_thenElse2 = __commonJS((exports) => {
|
|
|
11279
11281
|
});
|
|
11280
11282
|
|
|
11281
11283
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
11282
|
-
var require_applicator2 = __commonJS((exports)
|
|
11284
|
+
var require_applicator2 = __commonJS(function(exports) {
|
|
11283
11285
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11284
11286
|
var additionalItems_1 = require_additionalItems2();
|
|
11285
11287
|
var prefixItems_1 = require_prefixItems2();
|
|
@@ -11322,7 +11324,7 @@ var require_applicator2 = __commonJS((exports) => {
|
|
|
11322
11324
|
});
|
|
11323
11325
|
|
|
11324
11326
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js
|
|
11325
|
-
var require_format3 = __commonJS((exports)
|
|
11327
|
+
var require_format3 = __commonJS(function(exports) {
|
|
11326
11328
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11327
11329
|
var codegen_1 = require_codegen2();
|
|
11328
11330
|
var error2 = {
|
|
@@ -11409,7 +11411,7 @@ var require_format3 = __commonJS((exports) => {
|
|
|
11409
11411
|
});
|
|
11410
11412
|
|
|
11411
11413
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/index.js
|
|
11412
|
-
var require_format4 = __commonJS((exports)
|
|
11414
|
+
var require_format4 = __commonJS(function(exports) {
|
|
11413
11415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11414
11416
|
var format_1 = require_format3();
|
|
11415
11417
|
var format = [format_1.default];
|
|
@@ -11417,7 +11419,7 @@ var require_format4 = __commonJS((exports) => {
|
|
|
11417
11419
|
});
|
|
11418
11420
|
|
|
11419
11421
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/metadata.js
|
|
11420
|
-
var require_metadata2 = __commonJS((exports)
|
|
11422
|
+
var require_metadata2 = __commonJS(function(exports) {
|
|
11421
11423
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11422
11424
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
11423
11425
|
exports.metadataVocabulary = [
|
|
@@ -11437,7 +11439,7 @@ var require_metadata2 = __commonJS((exports) => {
|
|
|
11437
11439
|
});
|
|
11438
11440
|
|
|
11439
11441
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/draft7.js
|
|
11440
|
-
var require_draft72 = __commonJS((exports)
|
|
11442
|
+
var require_draft72 = __commonJS(function(exports) {
|
|
11441
11443
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11442
11444
|
var core_1 = require_core4();
|
|
11443
11445
|
var validation_1 = require_validation2();
|
|
@@ -11456,7 +11458,7 @@ var require_draft72 = __commonJS((exports) => {
|
|
|
11456
11458
|
});
|
|
11457
11459
|
|
|
11458
11460
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
11459
|
-
var require_types2 = __commonJS((exports)
|
|
11461
|
+
var require_types2 = __commonJS(function(exports) {
|
|
11460
11462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11461
11463
|
exports.DiscrError = undefined;
|
|
11462
11464
|
var DiscrError;
|
|
@@ -11467,7 +11469,7 @@ var require_types2 = __commonJS((exports) => {
|
|
|
11467
11469
|
});
|
|
11468
11470
|
|
|
11469
11471
|
// node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
11470
|
-
var require_discriminator2 = __commonJS((exports)
|
|
11472
|
+
var require_discriminator2 = __commonJS(function(exports) {
|
|
11471
11473
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11472
11474
|
var codegen_1 = require_codegen2();
|
|
11473
11475
|
var types_1 = require_types2();
|
|
@@ -11569,7 +11571,7 @@ var require_discriminator2 = __commonJS((exports) => {
|
|
|
11569
11571
|
});
|
|
11570
11572
|
|
|
11571
11573
|
// node_modules/ajv-formats/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
11572
|
-
var require_json_schema_draft_072 = __commonJS((exports, module)
|
|
11574
|
+
var require_json_schema_draft_072 = __commonJS(function(exports, module) {
|
|
11573
11575
|
module.exports = {
|
|
11574
11576
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
11575
11577
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -11724,7 +11726,7 @@ var require_json_schema_draft_072 = __commonJS((exports, module) => {
|
|
|
11724
11726
|
});
|
|
11725
11727
|
|
|
11726
11728
|
// node_modules/ajv-formats/node_modules/ajv/dist/ajv.js
|
|
11727
|
-
var require_ajv2 = __commonJS((exports, module)
|
|
11729
|
+
var require_ajv2 = __commonJS(function(exports, module) {
|
|
11728
11730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11729
11731
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
11730
11732
|
var core_1 = require_core3();
|
|
@@ -11792,7 +11794,7 @@ var require_ajv2 = __commonJS((exports, module) => {
|
|
|
11792
11794
|
});
|
|
11793
11795
|
|
|
11794
11796
|
// node_modules/ajv-formats/dist/limit.js
|
|
11795
|
-
var require_limit = __commonJS((exports)
|
|
11797
|
+
var require_limit = __commonJS(function(exports) {
|
|
11796
11798
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11797
11799
|
exports.formatLimitDefinition = undefined;
|
|
11798
11800
|
var ajv_1 = require_ajv2();
|
|
@@ -11861,7 +11863,7 @@ var require_limit = __commonJS((exports) => {
|
|
|
11861
11863
|
});
|
|
11862
11864
|
|
|
11863
11865
|
// node_modules/ajv-formats/dist/index.js
|
|
11864
|
-
var require_dist = __commonJS((exports, module)
|
|
11866
|
+
var require_dist = __commonJS(function(exports, module) {
|
|
11865
11867
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11866
11868
|
var formats_1 = require_formats();
|
|
11867
11869
|
var limit_1 = require_limit();
|
|
@@ -11902,113 +11904,113 @@ var require_dist = __commonJS((exports, module) => {
|
|
|
11902
11904
|
// node_modules/zod/v3/external.js
|
|
11903
11905
|
var exports_external = {};
|
|
11904
11906
|
__export(exports_external, {
|
|
11905
|
-
|
|
11906
|
-
util: () => util,
|
|
11907
|
-
unknown: () => unknownType,
|
|
11908
|
-
union: () => unionType,
|
|
11909
|
-
undefined: () => undefinedType,
|
|
11910
|
-
tuple: () => tupleType,
|
|
11911
|
-
transformer: () => effectsType,
|
|
11912
|
-
symbol: () => symbolType,
|
|
11913
|
-
string: () => stringType,
|
|
11914
|
-
strictObject: () => strictObjectType,
|
|
11915
|
-
setErrorMap: () => setErrorMap,
|
|
11916
|
-
set: () => setType,
|
|
11917
|
-
record: () => recordType,
|
|
11918
|
-
quotelessJson: () => quotelessJson,
|
|
11919
|
-
promise: () => promiseType,
|
|
11920
|
-
preprocess: () => preprocessType,
|
|
11921
|
-
pipeline: () => pipelineType,
|
|
11922
|
-
ostring: () => ostring,
|
|
11923
|
-
optional: () => optionalType,
|
|
11924
|
-
onumber: () => onumber,
|
|
11925
|
-
oboolean: () => oboolean,
|
|
11926
|
-
objectUtil: () => objectUtil,
|
|
11927
|
-
object: () => objectType,
|
|
11928
|
-
number: () => numberType,
|
|
11929
|
-
nullable: () => nullableType,
|
|
11930
|
-
null: () => nullType,
|
|
11931
|
-
never: () => neverType,
|
|
11932
|
-
nativeEnum: () => nativeEnumType,
|
|
11933
|
-
nan: () => nanType,
|
|
11934
|
-
map: () => mapType,
|
|
11935
|
-
makeIssue: () => makeIssue,
|
|
11936
|
-
literal: () => literalType,
|
|
11937
|
-
lazy: () => lazyType,
|
|
11938
|
-
late: () => late,
|
|
11939
|
-
isValid: () => isValid,
|
|
11940
|
-
isDirty: () => isDirty,
|
|
11941
|
-
isAsync: () => isAsync,
|
|
11942
|
-
isAborted: () => isAborted,
|
|
11943
|
-
intersection: () => intersectionType,
|
|
11944
|
-
instanceof: () => instanceOfType,
|
|
11945
|
-
getParsedType: () => getParsedType,
|
|
11946
|
-
getErrorMap: () => getErrorMap,
|
|
11947
|
-
function: () => functionType,
|
|
11948
|
-
enum: () => enumType,
|
|
11949
|
-
effect: () => effectsType,
|
|
11950
|
-
discriminatedUnion: () => discriminatedUnionType,
|
|
11951
|
-
defaultErrorMap: () => en_default,
|
|
11952
|
-
datetimeRegex: () => datetimeRegex,
|
|
11953
|
-
date: () => dateType,
|
|
11954
|
-
custom: () => custom,
|
|
11955
|
-
coerce: () => coerce,
|
|
11956
|
-
boolean: () => booleanType,
|
|
11957
|
-
bigint: () => bigIntType,
|
|
11958
|
-
array: () => arrayType,
|
|
11959
|
-
any: () => anyType,
|
|
11960
|
-
addIssueToContext: () => addIssueToContext,
|
|
11961
|
-
ZodVoid: () => ZodVoid,
|
|
11962
|
-
ZodUnknown: () => ZodUnknown,
|
|
11963
|
-
ZodUnion: () => ZodUnion,
|
|
11964
|
-
ZodUndefined: () => ZodUndefined,
|
|
11965
|
-
ZodType: () => ZodType,
|
|
11966
|
-
ZodTuple: () => ZodTuple,
|
|
11967
|
-
ZodTransformer: () => ZodEffects,
|
|
11968
|
-
ZodSymbol: () => ZodSymbol,
|
|
11969
|
-
ZodString: () => ZodString,
|
|
11970
|
-
ZodSet: () => ZodSet,
|
|
11971
|
-
ZodSchema: () => ZodType,
|
|
11972
|
-
ZodRecord: () => ZodRecord,
|
|
11973
|
-
ZodReadonly: () => ZodReadonly,
|
|
11974
|
-
ZodPromise: () => ZodPromise,
|
|
11975
|
-
ZodPipeline: () => ZodPipeline,
|
|
11976
|
-
ZodParsedType: () => ZodParsedType,
|
|
11977
|
-
ZodOptional: () => ZodOptional,
|
|
11978
|
-
ZodObject: () => ZodObject,
|
|
11979
|
-
ZodNumber: () => ZodNumber,
|
|
11980
|
-
ZodNullable: () => ZodNullable,
|
|
11981
|
-
ZodNull: () => ZodNull,
|
|
11982
|
-
ZodNever: () => ZodNever,
|
|
11983
|
-
ZodNativeEnum: () => ZodNativeEnum,
|
|
11984
|
-
ZodNaN: () => ZodNaN,
|
|
11985
|
-
ZodMap: () => ZodMap,
|
|
11986
|
-
ZodLiteral: () => ZodLiteral,
|
|
11987
|
-
ZodLazy: () => ZodLazy,
|
|
11988
|
-
ZodIssueCode: () => ZodIssueCode,
|
|
11989
|
-
ZodIntersection: () => ZodIntersection,
|
|
11990
|
-
ZodFunction: () => ZodFunction,
|
|
11991
|
-
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
11992
|
-
ZodError: () => ZodError,
|
|
11993
|
-
ZodEnum: () => ZodEnum,
|
|
11994
|
-
ZodEffects: () => ZodEffects,
|
|
11995
|
-
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
11996
|
-
ZodDefault: () => ZodDefault,
|
|
11997
|
-
ZodDate: () => ZodDate,
|
|
11998
|
-
ZodCatch: () => ZodCatch,
|
|
11999
|
-
ZodBranded: () => ZodBranded,
|
|
12000
|
-
ZodBoolean: () => ZodBoolean,
|
|
12001
|
-
ZodBigInt: () => ZodBigInt,
|
|
12002
|
-
ZodArray: () => ZodArray,
|
|
12003
|
-
ZodAny: () => ZodAny,
|
|
12004
|
-
Schema: () => ZodType,
|
|
12005
|
-
ParseStatus: () => ParseStatus,
|
|
12006
|
-
OK: () => OK,
|
|
12007
|
-
NEVER: () => NEVER,
|
|
12008
|
-
INVALID: () => INVALID,
|
|
12009
|
-
EMPTY_PATH: () => EMPTY_PATH,
|
|
11907
|
+
BRAND: () => BRAND,
|
|
12010
11908
|
DIRTY: () => DIRTY,
|
|
12011
|
-
|
|
11909
|
+
EMPTY_PATH: () => EMPTY_PATH,
|
|
11910
|
+
INVALID: () => INVALID,
|
|
11911
|
+
NEVER: () => NEVER,
|
|
11912
|
+
OK: () => OK,
|
|
11913
|
+
ParseStatus: () => ParseStatus,
|
|
11914
|
+
Schema: () => ZodType,
|
|
11915
|
+
ZodAny: () => ZodAny,
|
|
11916
|
+
ZodArray: () => ZodArray,
|
|
11917
|
+
ZodBigInt: () => ZodBigInt,
|
|
11918
|
+
ZodBoolean: () => ZodBoolean,
|
|
11919
|
+
ZodBranded: () => ZodBranded,
|
|
11920
|
+
ZodCatch: () => ZodCatch,
|
|
11921
|
+
ZodDate: () => ZodDate,
|
|
11922
|
+
ZodDefault: () => ZodDefault,
|
|
11923
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
11924
|
+
ZodEffects: () => ZodEffects,
|
|
11925
|
+
ZodEnum: () => ZodEnum,
|
|
11926
|
+
ZodError: () => ZodError,
|
|
11927
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
11928
|
+
ZodFunction: () => ZodFunction,
|
|
11929
|
+
ZodIntersection: () => ZodIntersection,
|
|
11930
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
11931
|
+
ZodLazy: () => ZodLazy,
|
|
11932
|
+
ZodLiteral: () => ZodLiteral,
|
|
11933
|
+
ZodMap: () => ZodMap,
|
|
11934
|
+
ZodNaN: () => ZodNaN,
|
|
11935
|
+
ZodNativeEnum: () => ZodNativeEnum,
|
|
11936
|
+
ZodNever: () => ZodNever,
|
|
11937
|
+
ZodNull: () => ZodNull,
|
|
11938
|
+
ZodNullable: () => ZodNullable,
|
|
11939
|
+
ZodNumber: () => ZodNumber,
|
|
11940
|
+
ZodObject: () => ZodObject,
|
|
11941
|
+
ZodOptional: () => ZodOptional,
|
|
11942
|
+
ZodParsedType: () => ZodParsedType,
|
|
11943
|
+
ZodPipeline: () => ZodPipeline,
|
|
11944
|
+
ZodPromise: () => ZodPromise,
|
|
11945
|
+
ZodReadonly: () => ZodReadonly,
|
|
11946
|
+
ZodRecord: () => ZodRecord,
|
|
11947
|
+
ZodSchema: () => ZodType,
|
|
11948
|
+
ZodSet: () => ZodSet,
|
|
11949
|
+
ZodString: () => ZodString,
|
|
11950
|
+
ZodSymbol: () => ZodSymbol,
|
|
11951
|
+
ZodTransformer: () => ZodEffects,
|
|
11952
|
+
ZodTuple: () => ZodTuple,
|
|
11953
|
+
ZodType: () => ZodType,
|
|
11954
|
+
ZodUndefined: () => ZodUndefined,
|
|
11955
|
+
ZodUnion: () => ZodUnion,
|
|
11956
|
+
ZodUnknown: () => ZodUnknown,
|
|
11957
|
+
ZodVoid: () => ZodVoid,
|
|
11958
|
+
addIssueToContext: () => addIssueToContext,
|
|
11959
|
+
any: () => anyType,
|
|
11960
|
+
array: () => arrayType,
|
|
11961
|
+
bigint: () => bigIntType,
|
|
11962
|
+
boolean: () => booleanType,
|
|
11963
|
+
coerce: () => coerce,
|
|
11964
|
+
custom: () => custom,
|
|
11965
|
+
date: () => dateType,
|
|
11966
|
+
datetimeRegex: () => datetimeRegex,
|
|
11967
|
+
defaultErrorMap: () => en_default,
|
|
11968
|
+
discriminatedUnion: () => discriminatedUnionType,
|
|
11969
|
+
effect: () => effectsType,
|
|
11970
|
+
enum: () => enumType,
|
|
11971
|
+
function: () => functionType,
|
|
11972
|
+
getErrorMap: () => getErrorMap,
|
|
11973
|
+
getParsedType: () => getParsedType,
|
|
11974
|
+
instanceof: () => instanceOfType,
|
|
11975
|
+
intersection: () => intersectionType,
|
|
11976
|
+
isAborted: () => isAborted,
|
|
11977
|
+
isAsync: () => isAsync,
|
|
11978
|
+
isDirty: () => isDirty,
|
|
11979
|
+
isValid: () => isValid,
|
|
11980
|
+
late: () => late,
|
|
11981
|
+
lazy: () => lazyType,
|
|
11982
|
+
literal: () => literalType,
|
|
11983
|
+
makeIssue: () => makeIssue,
|
|
11984
|
+
map: () => mapType,
|
|
11985
|
+
nan: () => nanType,
|
|
11986
|
+
nativeEnum: () => nativeEnumType,
|
|
11987
|
+
never: () => neverType,
|
|
11988
|
+
null: () => nullType,
|
|
11989
|
+
nullable: () => nullableType,
|
|
11990
|
+
number: () => numberType,
|
|
11991
|
+
object: () => objectType,
|
|
11992
|
+
objectUtil: () => objectUtil,
|
|
11993
|
+
oboolean: () => oboolean,
|
|
11994
|
+
onumber: () => onumber,
|
|
11995
|
+
optional: () => optionalType,
|
|
11996
|
+
ostring: () => ostring,
|
|
11997
|
+
pipeline: () => pipelineType,
|
|
11998
|
+
preprocess: () => preprocessType,
|
|
11999
|
+
promise: () => promiseType,
|
|
12000
|
+
quotelessJson: () => quotelessJson,
|
|
12001
|
+
record: () => recordType,
|
|
12002
|
+
set: () => setType,
|
|
12003
|
+
setErrorMap: () => setErrorMap,
|
|
12004
|
+
strictObject: () => strictObjectType,
|
|
12005
|
+
string: () => stringType,
|
|
12006
|
+
symbol: () => symbolType,
|
|
12007
|
+
transformer: () => effectsType,
|
|
12008
|
+
tuple: () => tupleType,
|
|
12009
|
+
undefined: () => undefinedType,
|
|
12010
|
+
union: () => unionType,
|
|
12011
|
+
unknown: () => unknownType,
|
|
12012
|
+
util: () => util,
|
|
12013
|
+
void: () => voidType
|
|
12012
12014
|
});
|
|
12013
12015
|
|
|
12014
12016
|
// node_modules/zod/v3/helpers/util.js
|
|
@@ -15935,55 +15937,55 @@ function config(newConfig) {
|
|
|
15935
15937
|
// node_modules/zod/v4/core/util.js
|
|
15936
15938
|
var exports_util = {};
|
|
15937
15939
|
__export(exports_util, {
|
|
15938
|
-
|
|
15939
|
-
stringifyPrimitive: () => stringifyPrimitive,
|
|
15940
|
-
required: () => required,
|
|
15941
|
-
randomString: () => randomString,
|
|
15942
|
-
propertyKeyTypes: () => propertyKeyTypes,
|
|
15943
|
-
promiseAllObject: () => promiseAllObject,
|
|
15944
|
-
primitiveTypes: () => primitiveTypes,
|
|
15945
|
-
prefixIssues: () => prefixIssues,
|
|
15946
|
-
pick: () => pick,
|
|
15947
|
-
partial: () => partial,
|
|
15948
|
-
optionalKeys: () => optionalKeys,
|
|
15949
|
-
omit: () => omit,
|
|
15950
|
-
numKeys: () => numKeys,
|
|
15951
|
-
nullish: () => nullish,
|
|
15952
|
-
normalizeParams: () => normalizeParams,
|
|
15953
|
-
merge: () => merge,
|
|
15954
|
-
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
15955
|
-
joinValues: () => joinValues,
|
|
15956
|
-
issue: () => issue,
|
|
15957
|
-
isPlainObject: () => isPlainObject,
|
|
15958
|
-
isObject: () => isObject,
|
|
15959
|
-
getSizableOrigin: () => getSizableOrigin,
|
|
15960
|
-
getParsedType: () => getParsedType2,
|
|
15961
|
-
getLengthableOrigin: () => getLengthableOrigin,
|
|
15962
|
-
getEnumValues: () => getEnumValues,
|
|
15963
|
-
getElementAtPath: () => getElementAtPath,
|
|
15964
|
-
floatSafeRemainder: () => floatSafeRemainder2,
|
|
15965
|
-
finalizeIssue: () => finalizeIssue,
|
|
15966
|
-
extend: () => extend,
|
|
15967
|
-
escapeRegex: () => escapeRegex,
|
|
15968
|
-
esc: () => esc,
|
|
15969
|
-
defineLazy: () => defineLazy,
|
|
15970
|
-
createTransparentProxy: () => createTransparentProxy,
|
|
15971
|
-
clone: () => clone,
|
|
15972
|
-
cleanRegex: () => cleanRegex,
|
|
15973
|
-
cleanEnum: () => cleanEnum,
|
|
15974
|
-
captureStackTrace: () => captureStackTrace,
|
|
15975
|
-
cached: () => cached,
|
|
15976
|
-
assignProp: () => assignProp,
|
|
15977
|
-
assertNotEqual: () => assertNotEqual,
|
|
15978
|
-
assertNever: () => assertNever,
|
|
15979
|
-
assertIs: () => assertIs,
|
|
15980
|
-
assertEqual: () => assertEqual,
|
|
15981
|
-
assert: () => assert,
|
|
15982
|
-
allowsEval: () => allowsEval,
|
|
15983
|
-
aborted: () => aborted,
|
|
15984
|
-
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
15940
|
+
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
15985
15941
|
Class: () => Class,
|
|
15986
|
-
|
|
15942
|
+
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
15943
|
+
aborted: () => aborted,
|
|
15944
|
+
allowsEval: () => allowsEval,
|
|
15945
|
+
assert: () => assert,
|
|
15946
|
+
assertEqual: () => assertEqual,
|
|
15947
|
+
assertIs: () => assertIs,
|
|
15948
|
+
assertNever: () => assertNever,
|
|
15949
|
+
assertNotEqual: () => assertNotEqual,
|
|
15950
|
+
assignProp: () => assignProp,
|
|
15951
|
+
cached: () => cached,
|
|
15952
|
+
captureStackTrace: () => captureStackTrace,
|
|
15953
|
+
cleanEnum: () => cleanEnum,
|
|
15954
|
+
cleanRegex: () => cleanRegex,
|
|
15955
|
+
clone: () => clone,
|
|
15956
|
+
createTransparentProxy: () => createTransparentProxy,
|
|
15957
|
+
defineLazy: () => defineLazy,
|
|
15958
|
+
esc: () => esc,
|
|
15959
|
+
escapeRegex: () => escapeRegex,
|
|
15960
|
+
extend: () => extend,
|
|
15961
|
+
finalizeIssue: () => finalizeIssue,
|
|
15962
|
+
floatSafeRemainder: () => floatSafeRemainder2,
|
|
15963
|
+
getElementAtPath: () => getElementAtPath,
|
|
15964
|
+
getEnumValues: () => getEnumValues,
|
|
15965
|
+
getLengthableOrigin: () => getLengthableOrigin,
|
|
15966
|
+
getParsedType: () => getParsedType2,
|
|
15967
|
+
getSizableOrigin: () => getSizableOrigin,
|
|
15968
|
+
isObject: () => isObject,
|
|
15969
|
+
isPlainObject: () => isPlainObject,
|
|
15970
|
+
issue: () => issue,
|
|
15971
|
+
joinValues: () => joinValues,
|
|
15972
|
+
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
15973
|
+
merge: () => merge,
|
|
15974
|
+
normalizeParams: () => normalizeParams,
|
|
15975
|
+
nullish: () => nullish,
|
|
15976
|
+
numKeys: () => numKeys,
|
|
15977
|
+
omit: () => omit,
|
|
15978
|
+
optionalKeys: () => optionalKeys,
|
|
15979
|
+
partial: () => partial,
|
|
15980
|
+
pick: () => pick,
|
|
15981
|
+
prefixIssues: () => prefixIssues,
|
|
15982
|
+
primitiveTypes: () => primitiveTypes,
|
|
15983
|
+
promiseAllObject: () => promiseAllObject,
|
|
15984
|
+
propertyKeyTypes: () => propertyKeyTypes,
|
|
15985
|
+
randomString: () => randomString,
|
|
15986
|
+
required: () => required,
|
|
15987
|
+
stringifyPrimitive: () => stringifyPrimitive,
|
|
15988
|
+
unwrapMessage: () => unwrapMessage
|
|
15987
15989
|
});
|
|
15988
15990
|
function assertEqual(val) {
|
|
15989
15991
|
return val;
|
|
@@ -19831,14 +19833,14 @@ function getLiteralValue(schema) {
|
|
|
19831
19833
|
// node_modules/zod/v4/classic/iso.js
|
|
19832
19834
|
var exports_iso2 = {};
|
|
19833
19835
|
__export(exports_iso2, {
|
|
19834
|
-
|
|
19835
|
-
duration: () => duration2,
|
|
19836
|
-
datetime: () => datetime2,
|
|
19837
|
-
date: () => date2,
|
|
19838
|
-
ZodISOTime: () => ZodISOTime,
|
|
19839
|
-
ZodISODuration: () => ZodISODuration,
|
|
19836
|
+
ZodISODate: () => ZodISODate,
|
|
19840
19837
|
ZodISODateTime: () => ZodISODateTime,
|
|
19841
|
-
|
|
19838
|
+
ZodISODuration: () => ZodISODuration,
|
|
19839
|
+
ZodISOTime: () => ZodISOTime,
|
|
19840
|
+
date: () => date2,
|
|
19841
|
+
datetime: () => datetime2,
|
|
19842
|
+
duration: () => duration2,
|
|
19843
|
+
time: () => time2
|
|
19842
19844
|
});
|
|
19843
19845
|
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
19844
19846
|
$ZodISODateTime.init(inst, def);
|
|
@@ -26187,8 +26189,55 @@ function decodeEncodedHtml(body) {
|
|
|
26187
26189
|
s = decodeEntitiesOnce(s);
|
|
26188
26190
|
return s.replace(/&(?![a-zA-Z]+;|#\d+;|#x[0-9a-fA-F]+;)/g, "&");
|
|
26189
26191
|
}
|
|
26192
|
+
var DOUBLE_ESCAPE = /&((?:[a-zA-Z][a-zA-Z0-9]*|#\d+|#x[0-9a-fA-F]+);)/g;
|
|
26193
|
+
var CODE_SPAN = /<(?:code|pre)[\s\S]*?<\/(?:code|pre)>/gi;
|
|
26190
26194
|
function repairDoubleEscaping(html) {
|
|
26191
|
-
|
|
26195
|
+
const parts = [];
|
|
26196
|
+
let last = 0;
|
|
26197
|
+
for (const m of html.matchAll(CODE_SPAN)) {
|
|
26198
|
+
const start = m.index ?? 0;
|
|
26199
|
+
parts.push(html.slice(last, start).replace(DOUBLE_ESCAPE, (_, entity) => `&${entity}`), m[0]);
|
|
26200
|
+
last = start + m[0].length;
|
|
26201
|
+
}
|
|
26202
|
+
parts.push(html.slice(last).replace(DOUBLE_ESCAPE, (_, entity) => `&${entity}`));
|
|
26203
|
+
return parts.join("");
|
|
26204
|
+
}
|
|
26205
|
+
function classifyDoubleEscape(html) {
|
|
26206
|
+
if (!DOUBLE_ESCAPE.test(html))
|
|
26207
|
+
return "clean";
|
|
26208
|
+
DOUBLE_ESCAPE.lastIndex = 0;
|
|
26209
|
+
const outside = html.replace(CODE_SPAN, "");
|
|
26210
|
+
DOUBLE_ESCAPE.lastIndex = 0;
|
|
26211
|
+
return DOUBLE_ESCAPE.test(outside) ? "carries" : "documents";
|
|
26212
|
+
}
|
|
26213
|
+
var ADDENDUM_MARKER = /<h[2-4][^>]*>\s*Addendum\s*(?:\u2014|\u2013|-|—|–)/i;
|
|
26214
|
+
function hasAddendumMarker(html) {
|
|
26215
|
+
return ADDENDUM_MARKER.test(html);
|
|
26216
|
+
}
|
|
26217
|
+
function editDistance(a, b) {
|
|
26218
|
+
const m = a.length, n = b.length;
|
|
26219
|
+
if (!m)
|
|
26220
|
+
return n;
|
|
26221
|
+
if (!n)
|
|
26222
|
+
return m;
|
|
26223
|
+
let prev = Array.from({ length: n + 1 }, (_, j) => j);
|
|
26224
|
+
for (let i = 1;i <= m; i++) {
|
|
26225
|
+
const cur = [i];
|
|
26226
|
+
for (let j = 1;j <= n; j++) {
|
|
26227
|
+
cur[j] = Math.min(prev[j] + 1, cur[j - 1] + 1, prev[j - 1] + (a[i - 1].toLowerCase() === b[j - 1].toLowerCase() ? 0 : 1));
|
|
26228
|
+
}
|
|
26229
|
+
prev = cur;
|
|
26230
|
+
}
|
|
26231
|
+
return prev[n];
|
|
26232
|
+
}
|
|
26233
|
+
function nearestHeading(requested, available) {
|
|
26234
|
+
let best = null;
|
|
26235
|
+
for (const heading of available) {
|
|
26236
|
+
const distance = editDistance(requested, heading);
|
|
26237
|
+
if (!best || distance < best.distance)
|
|
26238
|
+
best = { heading, distance };
|
|
26239
|
+
}
|
|
26240
|
+
return best;
|
|
26192
26241
|
}
|
|
26193
26242
|
function inlineMd(escaped) {
|
|
26194
26243
|
return escaped.replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>").replace(/(^|[\s(])\*([^*\s][^*]*)\*/g, "$1<em>$2</em>").replace(/`([^`]+)`/g, "<code>$1</code>").replace(/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g, '<a href="$2">$1</a>');
|
|
@@ -27749,10 +27798,17 @@ async function hygienePasses(trilium, cfg, report, ctx) {
|
|
|
27749
27798
|
for (const n of corrupted) {
|
|
27750
27799
|
if (!eligible(n))
|
|
27751
27800
|
continue;
|
|
27801
|
+
const content = await trilium.getNoteContent(n.noteId).catch(() => "");
|
|
27802
|
+
const verdict = classifyDoubleEscape(content);
|
|
27803
|
+
if (verdict !== "carries") {
|
|
27804
|
+
if (ctx.repair.has(n.noteId)) {
|
|
27805
|
+
report.flagged.push(`entity-corrupted: ${n.title} [${n.noteId}] \u2014 repair requested but the only matches live inside code spans: the note DOCUMENTS the signature rather than carrying it, and was left untouched. maintain(ack=["${n.noteId}"]) to silence.`);
|
|
27806
|
+
}
|
|
27807
|
+
continue;
|
|
27808
|
+
}
|
|
27752
27809
|
if (ctx.repair.has(n.noteId)) {
|
|
27753
|
-
const
|
|
27754
|
-
|
|
27755
|
-
if (after === before) {
|
|
27810
|
+
const after = repairDoubleEscaping(content);
|
|
27811
|
+
if (after === content) {
|
|
27756
27812
|
report.flagged.push(`entity-corrupted: ${n.title} [${n.noteId}] \u2014 repair requested but the body did not change; the match is a note DOCUMENTING the signature rather than carrying it. maintain(ack=["${n.noteId}"]) to silence.`);
|
|
27757
27813
|
continue;
|
|
27758
27814
|
}
|
|
@@ -27781,6 +27837,18 @@ async function hygienePasses(trilium, cfg, report, ctx) {
|
|
|
27781
27837
|
if (due) {
|
|
27782
27838
|
report.flagged.push(`claim ${verifiedOn ? "lapsed" : "unverified"}: "${n.title}" [${n.noteId}] \u2014 ` + `${verifiedOn ? `last verified ${verifiedOn}, interval ${interval}d` : "never verified since registration"}. ` + `Read its check with claim(claimId="${n.noteId}"), run it, and record the result.`);
|
|
27783
27839
|
}
|
|
27840
|
+
if (verifiedOn) {
|
|
27841
|
+
const sources = n.attributes.filter((a) => a.type === "relation" && a.name === "derivedFrom");
|
|
27842
|
+
for (const rel of sources) {
|
|
27843
|
+
const src = await trilium.getNote(rel.value).catch(() => null);
|
|
27844
|
+
if (!src)
|
|
27845
|
+
continue;
|
|
27846
|
+
const srcDay = src.dateModified.slice(0, 10);
|
|
27847
|
+
if (srcDay > verifiedOn) {
|
|
27848
|
+
report.flagged.push(`claim source-changed: "${n.title}" [${n.noteId}] \u2014 its ~derivedFrom source "${src.title}" [${src.noteId}] was revised on ${srcDay}, after the last verification on ${verifiedOn}. ` + `The check no longer covers what the note now says \u2014 re-verify with claim(claimId="${n.noteId}", holds=\u2026, evidence=\u2026) or retire it.`);
|
|
27849
|
+
}
|
|
27850
|
+
}
|
|
27851
|
+
}
|
|
27784
27852
|
}
|
|
27785
27853
|
const titled = await ctx.connectable("#noteType", 300);
|
|
27786
27854
|
const RECORD_TITLES = new Set(["diary", "session", "log", "threadEntry"]);
|
|
@@ -28660,10 +28728,14 @@ rather than listing them unconditionally for every caller to work around.`, {
|
|
|
28660
28728
|
}
|
|
28661
28729
|
}
|
|
28662
28730
|
const hygiene = await sweep(trilium, cfg, { deep: false, dryRun: false }).catch(() => null);
|
|
28663
|
-
const pendingAddendums = await trilium.searchNotes("#noteType note.content *=* 'Addendum'", { ancestorNoteId: cfg.root, fastSearch: false, limit: 40 }).then((r) =>
|
|
28664
|
-
const
|
|
28665
|
-
|
|
28666
|
-
|
|
28731
|
+
const pendingAddendums = await trilium.searchNotes("#noteType note.content *=* 'Addendum'", { ancestorNoteId: cfg.root, fastSearch: false, limit: 40 }).then(async (r) => {
|
|
28732
|
+
const candidates = r.results.filter((n) => {
|
|
28733
|
+
const kind = labelOf2(n, "noteType");
|
|
28734
|
+
return kind && !["session", "diary", "log", "threadEntry", "thread"].includes(kind);
|
|
28735
|
+
});
|
|
28736
|
+
const contents = await Promise.all(candidates.map((n) => trilium.getNoteContent(n.noteId).catch(() => "")));
|
|
28737
|
+
return contents.filter(hasAddendumMarker).length;
|
|
28738
|
+
}).catch(() => null);
|
|
28667
28739
|
const singletonStubs = [
|
|
28668
28740
|
["biography", biography],
|
|
28669
28741
|
["goals", goals],
|
|
@@ -29510,6 +29582,7 @@ find=; to add content next to a heading without touching its body, use mode="bef
|
|
|
29510
29582
|
title: exports_external.string().optional().describe("New title (normalized server-side)"),
|
|
29511
29583
|
section: exports_external.string().optional().describe("Target a section by heading text (h2/h3/h4, in that order); omit for whole-note append/replace"),
|
|
29512
29584
|
occurrence: exports_external.number().int().positive().optional().describe("section=: which same-text heading to target, 1-based (default: the first). Read them with outline(noteId)."),
|
|
29585
|
+
strict: exports_external.boolean().optional().describe("section=: refuse instead of writing when no heading matches. The default writes the content as a NEW section on a miss \u2014 right for a genuinely new heading, wrong for a typo. With strict=true a miss returns available= and a didYouMean suggestion, and the note is untouched."),
|
|
29513
29586
|
mode: exports_external.enum(["append", "replace", "before", "after", "remove"]).optional().describe('append (default) | replace | before | after | remove \u2014 "before"/"after" insert adjacent to the section= heading without touching its body; "remove" deletes the section= heading and its body, and needs no body='),
|
|
29514
29587
|
find: exports_external.string().optional().describe("Exact raw string to replace throughout the body with body= \u2014 targeted surgery without a read+full-replace. Takes precedence over section/mode."),
|
|
29515
29588
|
nth: exports_external.number().int().positive().optional().describe("find=: replace only the Nth occurrence, 1-based (default: all of them)"),
|
|
@@ -29521,7 +29594,7 @@ find=; to add content next to a heading without touching its body, use mode="bef
|
|
|
29521
29594
|
identity: exports_external.string().optional().describe(`append mode: the addendum's identification line \u2014 "LLM \xB7 environment \xB7 agent/mode [\xB7 Run N]"; REQUIRED when appending to a thread (unless the body already leads with the h3)`),
|
|
29522
29595
|
icon: exports_external.string().optional().describe('Display icon \u2014 a boxicons class ("bx bx-brain") or a bare name; normalized server-side'),
|
|
29523
29596
|
date: exports_external.string().optional().describe("ISO date (default: today)")
|
|
29524
|
-
}, async ({ noteId, body, title, section, occurrence, mode, find, nth, edits, identity, icon, date: date4 }) => {
|
|
29597
|
+
}, async ({ noteId, body, title, section, occurrence, mode, find, nth, edits, identity, icon, date: date4, strict }) => {
|
|
29525
29598
|
if (isContainer(b(), noteId))
|
|
29526
29599
|
return err("protected_note", `Note ${noteId} is a container \u2014 its content cannot be edited directly.`, "Use remember() to write to singletons, or specify a content note id.");
|
|
29527
29600
|
const d = date4 ?? today();
|
|
@@ -29728,9 +29801,14 @@ find=; to add content next to a heading without touching its body, use mode="bef
|
|
|
29728
29801
|
}
|
|
29729
29802
|
const current = await trilium.getNoteContent(noteId).catch(() => "");
|
|
29730
29803
|
if (section) {
|
|
29731
|
-
await trilium.createRevision(noteId).catch(() => null);
|
|
29732
29804
|
const sectionMode = mode === "append" || mode === "before" || mode === "after" ? mode : "replace";
|
|
29733
29805
|
const result = setSection(current, section, html, sectionMode, occurrence ?? 1);
|
|
29806
|
+
const near = !result.matched && result.available?.length ? nearestHeading(section, result.available) : null;
|
|
29807
|
+
const suggestion = near && near.distance <= Math.max(2, Math.floor(section.length / 5)) ? near : null;
|
|
29808
|
+
if (strict && !result.matched) {
|
|
29809
|
+
return err("section_not_found", `strict=true: no heading matches "${section}" and nothing was written.`, `Available headings: ${result.available?.length ? result.available.join(" \xB7 ") : "(none)"}${suggestion ? ` \u2014 did you mean "${suggestion.heading}"?` : ""} Re-target with the exact text, or drop strict= to allow the new-section append.`);
|
|
29810
|
+
}
|
|
29811
|
+
await trilium.createRevision(noteId).catch(() => null);
|
|
29734
29812
|
finalContent = bumpLastUpdated(result.html, d).html;
|
|
29735
29813
|
await trilium.updateNoteContent(noteId, finalContent);
|
|
29736
29814
|
sectionResult = {
|
|
@@ -29740,7 +29818,8 @@ find=; to add content next to a heading without touching its body, use mode="bef
|
|
|
29740
29818
|
};
|
|
29741
29819
|
sectionMiss = {
|
|
29742
29820
|
...result.appendedAtLevel ? { appendedAtLevel: result.appendedAtLevel } : {},
|
|
29743
|
-
...result.available?.length ? { available: result.available } : {}
|
|
29821
|
+
...result.available?.length ? { available: result.available } : {},
|
|
29822
|
+
...suggestion ? { didYouMean: suggestion.heading } : {}
|
|
29744
29823
|
};
|
|
29745
29824
|
} else if (mode === "replace") {
|
|
29746
29825
|
await trilium.createRevision(noteId).catch(() => null);
|
|
@@ -29775,7 +29854,7 @@ ${block}`), d).html;
|
|
|
29775
29854
|
const relations = relationSnippet(note);
|
|
29776
29855
|
const targeted = occurrence && occurrence > 1 ? ` occurrence ${occurrence} of` : "";
|
|
29777
29856
|
const verb = mode === "append" ? "appended to" : mode === "before" || mode === "after" ? `inserted ${mode}` : "replaced";
|
|
29778
|
-
const sectionHint = !sectionResult ? undefined : !sectionResult.matched ? `No existing "${section}" heading found at h2/h3/h4 \u2014 wrote a NEW h${sectionMiss.appendedAtLevel ?? 2} section instead of replacing anything. Check available= for the note's real heading texts, then re-target.` : sectionResult.headingCount > 1 && !occurrence ? `${sectionResult.headingCount} headings match "${section}" \u2014 the FIRST was ${verb}. Pass occurrence= (1-${sectionResult.headingCount}) to reach a different one; outline(noteId) lists them.` : sectionResult.headingCount > 1 ? `${sectionResult.headingCount} headings match "${section}" \u2014${targeted} that one was ${verb}.` : undefined;
|
|
29857
|
+
const sectionHint = !sectionResult ? undefined : !sectionResult.matched ? `No existing "${section}" heading found at h2/h3/h4 \u2014 wrote a NEW h${sectionMiss.appendedAtLevel ?? 2} section instead of replacing anything.${sectionMiss.didYouMean ? ` Nearest existing heading: "${sectionMiss.didYouMean}" \u2014 a typo is the likeliest cause.` : ""} Check available= for the note's real heading texts, then re-target.` : sectionResult.headingCount > 1 && !occurrence ? `${sectionResult.headingCount} headings match "${section}" \u2014 the FIRST was ${verb}. Pass occurrence= (1-${sectionResult.headingCount}) to reach a different one; outline(noteId) lists them.` : sectionResult.headingCount > 1 ? `${sectionResult.headingCount} headings match "${section}" \u2014${targeted} that one was ${verb}.` : undefined;
|
|
29779
29858
|
return txt3({
|
|
29780
29859
|
ok: true,
|
|
29781
29860
|
noteId,
|
|
@@ -30557,13 +30636,12 @@ Returns note IDs, titles, kinds, and content snippets so you can identify what t
|
|
|
30557
30636
|
seen.add(n.noteId);
|
|
30558
30637
|
return true;
|
|
30559
30638
|
});
|
|
30560
|
-
const ADDENDUM_MARKER = /<h[2-4][^>]*>\s*Addendum\s*(?:\u2014|\u2013|-|—|–)/i;
|
|
30561
30639
|
const notes = await Promise.all(unique.map(async (n) => {
|
|
30562
30640
|
const kind = labelOf2(n, "noteType");
|
|
30563
30641
|
if (!kind)
|
|
30564
30642
|
return null;
|
|
30565
30643
|
const content = await trilium.getNoteContent(n.noteId).catch(() => "");
|
|
30566
|
-
if (!
|
|
30644
|
+
if (!hasAddendumMarker(content))
|
|
30567
30645
|
return null;
|
|
30568
30646
|
const relations = relationSnippet(n);
|
|
30569
30647
|
return {
|
|
@@ -31554,6 +31632,112 @@ function applyToolAnnotations(server) {
|
|
|
31554
31632
|
return { annotated, unclassified };
|
|
31555
31633
|
}
|
|
31556
31634
|
|
|
31635
|
+
// src/sse.ts
|
|
31636
|
+
import { randomUUID } from "crypto";
|
|
31637
|
+
var KEEPALIVE_MS = 30000;
|
|
31638
|
+
|
|
31639
|
+
class BunSseServerTransport {
|
|
31640
|
+
endpointPath;
|
|
31641
|
+
sessionId = randomUUID();
|
|
31642
|
+
onclose;
|
|
31643
|
+
onerror;
|
|
31644
|
+
onmessage;
|
|
31645
|
+
controller = null;
|
|
31646
|
+
encoder = new TextEncoder;
|
|
31647
|
+
keepalive = null;
|
|
31648
|
+
closed = false;
|
|
31649
|
+
constructor(endpointPath) {
|
|
31650
|
+
this.endpointPath = endpointPath;
|
|
31651
|
+
}
|
|
31652
|
+
streamResponse() {
|
|
31653
|
+
const self = this;
|
|
31654
|
+
const stream = new ReadableStream({
|
|
31655
|
+
start(controller) {
|
|
31656
|
+
self.controller = controller;
|
|
31657
|
+
const url = new URL(self.endpointPath, "http://placeholder.local");
|
|
31658
|
+
url.searchParams.set("sessionId", self.sessionId);
|
|
31659
|
+
self.write(`event: endpoint
|
|
31660
|
+
data: ${url.pathname}${url.search}
|
|
31661
|
+
|
|
31662
|
+
`);
|
|
31663
|
+
self.keepalive = setInterval(() => self.write(`: ping
|
|
31664
|
+
|
|
31665
|
+
`), KEEPALIVE_MS);
|
|
31666
|
+
},
|
|
31667
|
+
cancel() {
|
|
31668
|
+
self.terminate();
|
|
31669
|
+
}
|
|
31670
|
+
});
|
|
31671
|
+
return new Response(stream, {
|
|
31672
|
+
headers: {
|
|
31673
|
+
"Content-Type": "text/event-stream",
|
|
31674
|
+
"Cache-Control": "no-store",
|
|
31675
|
+
Connection: "keep-alive"
|
|
31676
|
+
}
|
|
31677
|
+
});
|
|
31678
|
+
}
|
|
31679
|
+
async handlePost(req) {
|
|
31680
|
+
const url = new URL(req.url);
|
|
31681
|
+
if (url.searchParams.get("sessionId") !== this.sessionId) {
|
|
31682
|
+
return new Response(JSON.stringify({ error: "Session not found" }), {
|
|
31683
|
+
status: 404,
|
|
31684
|
+
headers: { "Content-Type": "application/json" }
|
|
31685
|
+
});
|
|
31686
|
+
}
|
|
31687
|
+
let message;
|
|
31688
|
+
try {
|
|
31689
|
+
message = await req.json();
|
|
31690
|
+
} catch {
|
|
31691
|
+
return new Response(JSON.stringify({ error: "invalid_request", error_description: "Body must be JSON." }), {
|
|
31692
|
+
status: 400,
|
|
31693
|
+
headers: { "Content-Type": "application/json" }
|
|
31694
|
+
});
|
|
31695
|
+
}
|
|
31696
|
+
try {
|
|
31697
|
+
this.onmessage?.(message);
|
|
31698
|
+
} catch (e) {
|
|
31699
|
+
this.onerror?.(e instanceof Error ? e : new Error(String(e)));
|
|
31700
|
+
}
|
|
31701
|
+
return new Response(null, { status: 202 });
|
|
31702
|
+
}
|
|
31703
|
+
async start() {}
|
|
31704
|
+
async send(message, _options) {
|
|
31705
|
+
if (this.closed)
|
|
31706
|
+
throw new Error("SSE transport is closed");
|
|
31707
|
+
this.write(`event: message
|
|
31708
|
+
data: ${JSON.stringify(message)}
|
|
31709
|
+
|
|
31710
|
+
`);
|
|
31711
|
+
}
|
|
31712
|
+
async close() {
|
|
31713
|
+
this.terminate();
|
|
31714
|
+
}
|
|
31715
|
+
write(chunk) {
|
|
31716
|
+
if (this.closed || !this.controller)
|
|
31717
|
+
return;
|
|
31718
|
+
try {
|
|
31719
|
+
this.controller.enqueue(this.encoder.encode(chunk));
|
|
31720
|
+
} catch (e) {
|
|
31721
|
+
this.onerror?.(e instanceof Error ? e : new Error(String(e)));
|
|
31722
|
+
this.terminate();
|
|
31723
|
+
}
|
|
31724
|
+
}
|
|
31725
|
+
terminate() {
|
|
31726
|
+
if (this.closed)
|
|
31727
|
+
return;
|
|
31728
|
+
this.closed = true;
|
|
31729
|
+
if (this.keepalive) {
|
|
31730
|
+
clearInterval(this.keepalive);
|
|
31731
|
+
this.keepalive = null;
|
|
31732
|
+
}
|
|
31733
|
+
try {
|
|
31734
|
+
this.controller?.close();
|
|
31735
|
+
} catch {}
|
|
31736
|
+
this.controller = null;
|
|
31737
|
+
this.onclose?.();
|
|
31738
|
+
}
|
|
31739
|
+
}
|
|
31740
|
+
|
|
31557
31741
|
// src/oauth.ts
|
|
31558
31742
|
import { createHmac, randomBytes, createHash, timingSafeEqual } from "crypto";
|
|
31559
31743
|
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
@@ -31589,6 +31773,7 @@ function verifyJwt(token, secret) {
|
|
|
31589
31773
|
return null;
|
|
31590
31774
|
}
|
|
31591
31775
|
}
|
|
31776
|
+
var MAX_REGISTERED_CLIENTS = 200;
|
|
31592
31777
|
function storePath() {
|
|
31593
31778
|
return configFilePath().replace(/\.json$/, "") + ".oauth.json";
|
|
31594
31779
|
}
|
|
@@ -31601,12 +31786,12 @@ function loadStore() {
|
|
|
31601
31786
|
try {
|
|
31602
31787
|
const parsed = JSON.parse(readFileSync2(path, "utf-8"));
|
|
31603
31788
|
if (typeof parsed.secret === "string" && parsed.secret) {
|
|
31604
|
-
cache = { secret: parsed.secret, codes: parsed.codes ?? {}, refresh: parsed.refresh ?? {} };
|
|
31789
|
+
cache = { secret: parsed.secret, codes: parsed.codes ?? {}, refresh: parsed.refresh ?? {}, clients: parsed.clients ?? {} };
|
|
31605
31790
|
return cache;
|
|
31606
31791
|
}
|
|
31607
31792
|
} catch {}
|
|
31608
31793
|
}
|
|
31609
|
-
cache = { secret: randomBytes(32).toString("hex"), codes: {}, refresh: {} };
|
|
31794
|
+
cache = { secret: randomBytes(32).toString("hex"), codes: {}, refresh: {}, clients: {} };
|
|
31610
31795
|
saveStore();
|
|
31611
31796
|
return cache;
|
|
31612
31797
|
}
|
|
@@ -31620,6 +31805,12 @@ function saveStore() {
|
|
|
31620
31805
|
for (const [k, v] of Object.entries(cache.refresh))
|
|
31621
31806
|
if (v.expiresAt < now)
|
|
31622
31807
|
delete cache.refresh[k];
|
|
31808
|
+
const regs = Object.entries(cache.clients ?? {});
|
|
31809
|
+
if (regs.length > MAX_REGISTERED_CLIENTS) {
|
|
31810
|
+
regs.sort(([, a], [, b]) => a.issuedAt - b.issuedAt);
|
|
31811
|
+
for (const [k] of regs.slice(0, regs.length - MAX_REGISTERED_CLIENTS))
|
|
31812
|
+
delete cache.clients[k];
|
|
31813
|
+
}
|
|
31623
31814
|
try {
|
|
31624
31815
|
writeFileSync2(storePath(), JSON.stringify(cache), { mode: 384 });
|
|
31625
31816
|
} catch {}
|
|
@@ -31664,6 +31855,7 @@ function authorizationServerMetadata(base) {
|
|
|
31664
31855
|
scopes_supported: [SCOPE],
|
|
31665
31856
|
response_types_supported: ["code"],
|
|
31666
31857
|
grant_types_supported: ["authorization_code", "refresh_token"],
|
|
31858
|
+
registration_endpoint: `${base}/register`,
|
|
31667
31859
|
token_endpoint_auth_methods_supported: ["none"],
|
|
31668
31860
|
client_id_metadata_document_supported: true,
|
|
31669
31861
|
code_challenge_methods_supported: ["S256"],
|
|
@@ -31731,6 +31923,16 @@ function validateClientDocument(clientIdUrl, doc2) {
|
|
|
31731
31923
|
return { client: d };
|
|
31732
31924
|
}
|
|
31733
31925
|
async function resolveClient(clientId) {
|
|
31926
|
+
const registered = loadStore().clients?.[clientId];
|
|
31927
|
+
if (registered) {
|
|
31928
|
+
return {
|
|
31929
|
+
client: {
|
|
31930
|
+
client_id: clientId,
|
|
31931
|
+
client_name: registered.clientName,
|
|
31932
|
+
redirect_uris: registered.redirectUris
|
|
31933
|
+
}
|
|
31934
|
+
};
|
|
31935
|
+
}
|
|
31734
31936
|
let url;
|
|
31735
31937
|
try {
|
|
31736
31938
|
url = new URL(clientId);
|
|
@@ -31753,6 +31955,79 @@ async function resolveClient(clientId) {
|
|
|
31753
31955
|
}
|
|
31754
31956
|
return validateClientDocument(url.href, doc2);
|
|
31755
31957
|
}
|
|
31958
|
+
var MAX_REDIRECT_URIS = 5;
|
|
31959
|
+
function validateRegistration(body) {
|
|
31960
|
+
if (!body || typeof body !== "object")
|
|
31961
|
+
return { error: "registration request is not a JSON object" };
|
|
31962
|
+
const b = body;
|
|
31963
|
+
const rawUris = b.redirect_uris;
|
|
31964
|
+
if (!Array.isArray(rawUris) || rawUris.length === 0) {
|
|
31965
|
+
return { error: "redirect_uris must be a non-empty array" };
|
|
31966
|
+
}
|
|
31967
|
+
if (rawUris.length > MAX_REDIRECT_URIS) {
|
|
31968
|
+
return { error: `redirect_uris may list at most ${MAX_REDIRECT_URIS} entries` };
|
|
31969
|
+
}
|
|
31970
|
+
for (const entry of rawUris) {
|
|
31971
|
+
let r;
|
|
31972
|
+
try {
|
|
31973
|
+
r = new URL(String(entry));
|
|
31974
|
+
} catch {
|
|
31975
|
+
return { error: `invalid redirect_uri: ${String(entry)}` };
|
|
31976
|
+
}
|
|
31977
|
+
if (isLoopback(r))
|
|
31978
|
+
continue;
|
|
31979
|
+
if (r.protocol !== "https:")
|
|
31980
|
+
return { error: "non-loopback redirect_uris must use https" };
|
|
31981
|
+
}
|
|
31982
|
+
const clientName = typeof b.client_name === "string" ? b.client_name : undefined;
|
|
31983
|
+
return { redirectUris: rawUris.map((u) => String(u)), ...clientName ? { clientName } : {} };
|
|
31984
|
+
}
|
|
31985
|
+
async function handleRegister(req) {
|
|
31986
|
+
if (req.method !== "POST") {
|
|
31987
|
+
return new Response(JSON.stringify({ error: "invalid_request", error_description: "POST required." }), {
|
|
31988
|
+
status: 405,
|
|
31989
|
+
headers: { "Content-Type": "application/json", Allow: "POST", "Cache-Control": "no-store" }
|
|
31990
|
+
});
|
|
31991
|
+
}
|
|
31992
|
+
let body;
|
|
31993
|
+
try {
|
|
31994
|
+
body = await req.json();
|
|
31995
|
+
} catch {
|
|
31996
|
+
return new Response(JSON.stringify({ error: "invalid_client_metadata", error_description: "Body must be JSON." }), {
|
|
31997
|
+
status: 400,
|
|
31998
|
+
headers: { "Content-Type": "application/json", "Cache-Control": "no-store" }
|
|
31999
|
+
});
|
|
32000
|
+
}
|
|
32001
|
+
const validated = validateRegistration(body);
|
|
32002
|
+
if ("error" in validated) {
|
|
32003
|
+
return new Response(JSON.stringify({ error: "invalid_redirect_uri", error_description: validated.error }), {
|
|
32004
|
+
status: 400,
|
|
32005
|
+
headers: { "Content-Type": "application/json", "Cache-Control": "no-store" }
|
|
32006
|
+
});
|
|
32007
|
+
}
|
|
32008
|
+
const clientId = `reg_${randomBytes(12).toString("hex")}`;
|
|
32009
|
+
const store = loadStore();
|
|
32010
|
+
store.clients = store.clients ?? {};
|
|
32011
|
+
store.clients[clientId] = {
|
|
32012
|
+
redirectUris: validated.redirectUris,
|
|
32013
|
+
...validated.clientName ? { clientName: validated.clientName } : {},
|
|
32014
|
+
issuedAt: Date.now()
|
|
32015
|
+
};
|
|
32016
|
+
saveStore();
|
|
32017
|
+
return new Response(JSON.stringify({
|
|
32018
|
+
client_id: clientId,
|
|
32019
|
+
client_id_issued_at: Math.floor(Date.now() / 1000),
|
|
32020
|
+
client_name: validated.clientName,
|
|
32021
|
+
redirect_uris: validated.redirectUris,
|
|
32022
|
+
token_endpoint_auth_method: "none",
|
|
32023
|
+
grant_types: ["authorization_code", "refresh_token"],
|
|
32024
|
+
response_types: ["code"],
|
|
32025
|
+
scope: SCOPE
|
|
32026
|
+
}), {
|
|
32027
|
+
status: 201,
|
|
32028
|
+
headers: { "Content-Type": "application/json", "Cache-Control": "no-store" }
|
|
32029
|
+
});
|
|
32030
|
+
}
|
|
31756
32031
|
var esc2 = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
31757
32032
|
var PAGE_CSS = `
|
|
31758
32033
|
:root {
|
|
@@ -31828,8 +32103,19 @@ var shell = (title, body) => `<!doctype html>
|
|
|
31828
32103
|
<title>${esc2(title)}</title>
|
|
31829
32104
|
<style>${PAGE_CSS}</style></head>
|
|
31830
32105
|
<body>${body}</body></html>`;
|
|
31831
|
-
function
|
|
32106
|
+
function landingPage(base, oauthOn, sseOn) {
|
|
32107
|
+
return shell("BrainLLM \u2014 a persistent memory server", `<div class="card">
|
|
32108
|
+
<div class="brand">${BRAND_MARK}<span class="brand-name">BrainLLM</span></div>
|
|
32109
|
+
<h1>A brain is listening</h1>
|
|
32110
|
+
<p>This is a <strong>BrainLLM</strong> MCP memory server \u2014 a persistent, graph-structured second brain served over the Model Context Protocol.</p>
|
|
32111
|
+
<p>Point an MCP client at <span class="host">${esc2(base)}/mcp</span>${sseOn ? ` \u2014 or, for clients that only speak the legacy SSE transport, <span class="host">${esc2(base)}/sse</span>` : ""}.</p>
|
|
32112
|
+
<p>${oauthOn ? `Authentication: OAuth 2.1 with owner consent, or a static bearer token (<span class="host">MCP_AUTH_TOKEN</span>). Both work against the same brain.` : `Authentication: a static bearer token (<span class="host">MCP_AUTH_TOKEN</span>).`}</p>
|
|
32113
|
+
<p class="foot">Health: <span class="host">/health</span> \xB7 Everything else is MCP.</p>
|
|
32114
|
+
</div>`);
|
|
32115
|
+
}
|
|
32116
|
+
function consentPage(params, clientHost, error2, verifiedHost = true) {
|
|
31832
32117
|
const hidden = Object.entries(params).map(([k, v]) => `<input type="hidden" name="${esc2(k)}" value="${esc2(v)}">`).join("");
|
|
32118
|
+
const foot = verifiedHost ? "Only the host above is shown, and it is the one DNS and TLS vouch for." : "The name above is self-reported by the application \u2014 your password is what authorizes access.";
|
|
31833
32119
|
return shell("Authorize access to your brain", `<form class="card" method="POST" action="/authorize">
|
|
31834
32120
|
<div class="brand">${BRAND_MARK}<span class="brand-name">BrainLLM</span></div>
|
|
31835
32121
|
<h1>Authorize access</h1>
|
|
@@ -31843,7 +32129,7 @@ function consentPage(params, clientHost, error2) {
|
|
|
31843
32129
|
<button class="deny" type="submit" name="decision" value="deny">Deny</button>
|
|
31844
32130
|
<button class="approve" type="submit" name="decision" value="approve">Authorize</button>
|
|
31845
32131
|
</div>
|
|
31846
|
-
<p class="foot"
|
|
32132
|
+
<p class="foot">${foot}</p>
|
|
31847
32133
|
</form>`);
|
|
31848
32134
|
}
|
|
31849
32135
|
var redirectWith = (uri, params) => {
|
|
@@ -31887,7 +32173,14 @@ async function handleAuthorize(req, base) {
|
|
|
31887
32173
|
if (resource && resource.replace(/\/+$/, "") !== resourceUri(base).replace(/\/+$/, "")) {
|
|
31888
32174
|
return fail("invalid_target", `This server only issues tokens for ${resourceUri(base)}.`);
|
|
31889
32175
|
}
|
|
31890
|
-
|
|
32176
|
+
let clientHost;
|
|
32177
|
+
let verifiedHost = true;
|
|
32178
|
+
try {
|
|
32179
|
+
clientHost = new URL(clientId).host;
|
|
32180
|
+
} catch {
|
|
32181
|
+
verifiedHost = false;
|
|
32182
|
+
clientHost = resolved.client.client_name ?? "a dynamically registered client";
|
|
32183
|
+
}
|
|
31891
32184
|
const carried = {
|
|
31892
32185
|
client_id: clientId,
|
|
31893
32186
|
redirect_uri: redirectUri,
|
|
@@ -31899,7 +32192,7 @@ async function handleAuthorize(req, base) {
|
|
|
31899
32192
|
...resource ? { resource } : {}
|
|
31900
32193
|
};
|
|
31901
32194
|
if (!form) {
|
|
31902
|
-
return new Response(consentPage(carried, clientHost), {
|
|
32195
|
+
return new Response(consentPage(carried, clientHost, undefined, verifiedHost), {
|
|
31903
32196
|
headers: { "Content-Type": "text/html; charset=utf-8", "Cache-Control": "no-store" }
|
|
31904
32197
|
});
|
|
31905
32198
|
}
|
|
@@ -31907,7 +32200,7 @@ async function handleAuthorize(req, base) {
|
|
|
31907
32200
|
return fail("access_denied", "The owner denied the request.");
|
|
31908
32201
|
}
|
|
31909
32202
|
if (!ownerPasswordMatches(get("password"))) {
|
|
31910
|
-
return new Response(consentPage(carried, clientHost, "Incorrect password."), {
|
|
32203
|
+
return new Response(consentPage(carried, clientHost, "Incorrect password.", verifiedHost), {
|
|
31911
32204
|
status: 401,
|
|
31912
32205
|
headers: { "Content-Type": "text/html; charset=utf-8", "Cache-Control": "no-store" }
|
|
31913
32206
|
});
|
|
@@ -32075,7 +32368,7 @@ function createServer(origin = null) {
|
|
|
32075
32368
|
const s = new McpServer({
|
|
32076
32369
|
name: "BrainLLM",
|
|
32077
32370
|
title: "BrainLLM",
|
|
32078
|
-
version: "
|
|
32371
|
+
version: "11.0.0",
|
|
32079
32372
|
icons: brandingIcons(origin)
|
|
32080
32373
|
});
|
|
32081
32374
|
registerTools(s, trilium, brainRef);
|
|
@@ -32089,6 +32382,7 @@ function createServer(origin = null) {
|
|
|
32089
32382
|
}
|
|
32090
32383
|
if (port) {
|
|
32091
32384
|
const sessions = new Map;
|
|
32385
|
+
const sseSessions = new Map;
|
|
32092
32386
|
const CORS_HEADERS = {
|
|
32093
32387
|
"Access-Control-Allow-Origin": "*",
|
|
32094
32388
|
"Access-Control-Allow-Methods": "GET, POST, DELETE, OPTIONS",
|
|
@@ -32108,6 +32402,12 @@ if (port) {
|
|
|
32108
32402
|
if (entry.lastUsed < cutoff)
|
|
32109
32403
|
sessions.delete(id);
|
|
32110
32404
|
}
|
|
32405
|
+
for (const [id, entry] of sseSessions) {
|
|
32406
|
+
if (entry.lastUsed < cutoff) {
|
|
32407
|
+
sseSessions.delete(id);
|
|
32408
|
+
entry.transport.close().catch(() => {});
|
|
32409
|
+
}
|
|
32410
|
+
}
|
|
32111
32411
|
}, 15 * 60 * 1000).unref();
|
|
32112
32412
|
Bun.serve({
|
|
32113
32413
|
port,
|
|
@@ -32153,7 +32453,7 @@ if (port) {
|
|
|
32153
32453
|
if (url.pathname === "/.well-known/oauth-protected-resource" || url.pathname === "/.well-known/oauth-protected-resource/mcp") {
|
|
32154
32454
|
return json(protectedResourceMetadata(base));
|
|
32155
32455
|
}
|
|
32156
|
-
if (url.pathname === "/.well-known/oauth-authorization-server" || url.pathname === "/.well-known/openid-configuration") {
|
|
32456
|
+
if (url.pathname === "/.well-known/oauth-authorization-server" || url.pathname === "/.well-known/oauth-authorization-server/mcp" || url.pathname === "/.well-known/openid-configuration") {
|
|
32157
32457
|
return json(authorizationServerMetadata(base));
|
|
32158
32458
|
}
|
|
32159
32459
|
if (url.pathname === "/authorize") {
|
|
@@ -32162,21 +32462,62 @@ if (port) {
|
|
|
32162
32462
|
if (url.pathname === "/token") {
|
|
32163
32463
|
return withCors(await handleToken(req, base));
|
|
32164
32464
|
}
|
|
32465
|
+
if (url.pathname === "/register") {
|
|
32466
|
+
return withCors(await handleRegister(req));
|
|
32467
|
+
}
|
|
32468
|
+
}
|
|
32469
|
+
if (url.pathname === "/") {
|
|
32470
|
+
return withCors(new Response(landingPage(base, oauthOn, true), {
|
|
32471
|
+
headers: { "Content-Type": "text/html; charset=utf-8", "Cache-Control": "no-store" }
|
|
32472
|
+
}));
|
|
32165
32473
|
}
|
|
32166
|
-
if (url.pathname !== "/mcp") {
|
|
32474
|
+
if (url.pathname !== "/mcp" && url.pathname !== "/sse" && url.pathname !== "/messages") {
|
|
32167
32475
|
return withCors(new Response("Not Found", { status: 404 }));
|
|
32168
32476
|
}
|
|
32169
|
-
|
|
32477
|
+
const gate = () => {
|
|
32478
|
+
if (!authToken && !oauthOn)
|
|
32479
|
+
return null;
|
|
32170
32480
|
const header = req.headers.get("Authorization") ?? "";
|
|
32171
32481
|
const bearer = header.startsWith("Bearer ") ? header.slice(7) : "";
|
|
32172
32482
|
const staticOk = !!authToken && bearer === authToken;
|
|
32173
32483
|
const oauthOk = oauthOn && !!bearer && validateAccessToken(bearer, base);
|
|
32174
|
-
if (
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32484
|
+
if (staticOk || oauthOk)
|
|
32485
|
+
return null;
|
|
32486
|
+
const headers = { "Content-Type": "application/json" };
|
|
32487
|
+
if (oauthOn)
|
|
32488
|
+
headers["WWW-Authenticate"] = wwwAuthenticate(base, bearer ? "invalid_token" : undefined);
|
|
32489
|
+
return withCors(new Response(JSON.stringify({ error: "invalid_token", error_description: "Authentication required." }), { status: 401, headers }));
|
|
32490
|
+
};
|
|
32491
|
+
if (url.pathname === "/sse") {
|
|
32492
|
+
if (req.method !== "GET") {
|
|
32493
|
+
return withCors(new Response("Method Not Allowed", { status: 405, headers: { Allow: "GET" } }));
|
|
32494
|
+
}
|
|
32495
|
+
const denied = gate();
|
|
32496
|
+
if (denied)
|
|
32497
|
+
return denied;
|
|
32498
|
+
const transport = new BunSseServerTransport("/messages");
|
|
32499
|
+
sseSessions.set(transport.sessionId, { transport, lastUsed: Date.now() });
|
|
32500
|
+
transport.onclose = () => sseSessions.delete(transport.sessionId);
|
|
32501
|
+
await createServer(base).connect(transport);
|
|
32502
|
+
return withCors(transport.streamResponse());
|
|
32503
|
+
}
|
|
32504
|
+
if (url.pathname === "/messages") {
|
|
32505
|
+
if (req.method !== "POST") {
|
|
32506
|
+
return withCors(new Response("Method Not Allowed", { status: 405, headers: { Allow: "POST" } }));
|
|
32507
|
+
}
|
|
32508
|
+
const denied = gate();
|
|
32509
|
+
if (denied)
|
|
32510
|
+
return denied;
|
|
32511
|
+
const sid = url.searchParams.get("sessionId") ?? "";
|
|
32512
|
+
const entry = sseSessions.get(sid);
|
|
32513
|
+
if (!entry) {
|
|
32514
|
+
return withCors(new Response(JSON.stringify({ error: "Session not found" }), {
|
|
32515
|
+
status: 404,
|
|
32516
|
+
headers: { "Content-Type": "application/json" }
|
|
32517
|
+
}));
|
|
32179
32518
|
}
|
|
32519
|
+
entry.lastUsed = Date.now();
|
|
32520
|
+
return withCors(await entry.transport.handlePost(req));
|
|
32180
32521
|
}
|
|
32181
32522
|
const sessionId = req.headers.get("mcp-session-id");
|
|
32182
32523
|
if (req.method === "DELETE") {
|