@hasna/microservices 0.0.19 → 0.0.21
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 +19 -8
- package/bin/index.js +527 -142
- package/bin/mcp.js +750 -276
- package/dist/index.js +244 -49
- package/package.json +14 -2
package/bin/mcp.js
CHANGED
|
@@ -44,8 +44,9 @@ var __export = (target, all) => {
|
|
|
44
44
|
set: __exportSetter.bind(all, name)
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
+
var __require = import.meta.require;
|
|
47
48
|
|
|
48
|
-
// node_modules/ajv/dist/compile/codegen/code.js
|
|
49
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
49
50
|
var require_code = __commonJS((exports) => {
|
|
50
51
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
52
|
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;
|
|
@@ -199,7 +200,7 @@ var require_code = __commonJS((exports) => {
|
|
|
199
200
|
exports.regexpCode = regexpCode;
|
|
200
201
|
});
|
|
201
202
|
|
|
202
|
-
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
203
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
203
204
|
var require_scope = __commonJS((exports) => {
|
|
204
205
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205
206
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
|
|
@@ -345,7 +346,7 @@ var require_scope = __commonJS((exports) => {
|
|
|
345
346
|
exports.ValueScope = ValueScope;
|
|
346
347
|
});
|
|
347
348
|
|
|
348
|
-
// node_modules/ajv/dist/compile/codegen/index.js
|
|
349
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
349
350
|
var require_codegen = __commonJS((exports) => {
|
|
350
351
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
351
352
|
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;
|
|
@@ -1055,7 +1056,7 @@ var require_codegen = __commonJS((exports) => {
|
|
|
1055
1056
|
}
|
|
1056
1057
|
});
|
|
1057
1058
|
|
|
1058
|
-
// node_modules/ajv/dist/compile/util.js
|
|
1059
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/util.js
|
|
1059
1060
|
var require_util = __commonJS((exports) => {
|
|
1060
1061
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1061
1062
|
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;
|
|
@@ -1219,7 +1220,7 @@ var require_util = __commonJS((exports) => {
|
|
|
1219
1220
|
exports.checkStrictMode = checkStrictMode;
|
|
1220
1221
|
});
|
|
1221
1222
|
|
|
1222
|
-
// node_modules/ajv/dist/compile/names.js
|
|
1223
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/names.js
|
|
1223
1224
|
var require_names = __commonJS((exports) => {
|
|
1224
1225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1225
1226
|
var codegen_1 = require_codegen();
|
|
@@ -1244,7 +1245,7 @@ var require_names = __commonJS((exports) => {
|
|
|
1244
1245
|
exports.default = names;
|
|
1245
1246
|
});
|
|
1246
1247
|
|
|
1247
|
-
// node_modules/ajv/dist/compile/errors.js
|
|
1248
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js
|
|
1248
1249
|
var require_errors = __commonJS((exports) => {
|
|
1249
1250
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1250
1251
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
|
|
@@ -1362,7 +1363,7 @@ var require_errors = __commonJS((exports) => {
|
|
|
1362
1363
|
}
|
|
1363
1364
|
});
|
|
1364
1365
|
|
|
1365
|
-
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1366
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1366
1367
|
var require_boolSchema = __commonJS((exports) => {
|
|
1367
1368
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1368
1369
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
|
|
@@ -1410,7 +1411,7 @@ var require_boolSchema = __commonJS((exports) => {
|
|
|
1410
1411
|
}
|
|
1411
1412
|
});
|
|
1412
1413
|
|
|
1413
|
-
// node_modules/ajv/dist/compile/rules.js
|
|
1414
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js
|
|
1414
1415
|
var require_rules = __commonJS((exports) => {
|
|
1415
1416
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1416
1417
|
exports.getRules = exports.isJSONType = undefined;
|
|
@@ -1438,7 +1439,7 @@ var require_rules = __commonJS((exports) => {
|
|
|
1438
1439
|
exports.getRules = getRules;
|
|
1439
1440
|
});
|
|
1440
1441
|
|
|
1441
|
-
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
1442
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1442
1443
|
var require_applicability = __commonJS((exports) => {
|
|
1443
1444
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1444
1445
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
|
|
@@ -1458,7 +1459,7 @@ var require_applicability = __commonJS((exports) => {
|
|
|
1458
1459
|
exports.shouldUseRule = shouldUseRule;
|
|
1459
1460
|
});
|
|
1460
1461
|
|
|
1461
|
-
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
1462
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1462
1463
|
var require_dataType = __commonJS((exports) => {
|
|
1463
1464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1464
1465
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
|
|
@@ -1639,7 +1640,7 @@ var require_dataType = __commonJS((exports) => {
|
|
|
1639
1640
|
}
|
|
1640
1641
|
});
|
|
1641
1642
|
|
|
1642
|
-
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
1643
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1643
1644
|
var require_defaults = __commonJS((exports) => {
|
|
1644
1645
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1645
1646
|
exports.assignDefaults = undefined;
|
|
@@ -1673,7 +1674,7 @@ var require_defaults = __commonJS((exports) => {
|
|
|
1673
1674
|
}
|
|
1674
1675
|
});
|
|
1675
1676
|
|
|
1676
|
-
// node_modules/ajv/dist/vocabularies/code.js
|
|
1677
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1677
1678
|
var require_code2 = __commonJS((exports) => {
|
|
1678
1679
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1679
1680
|
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;
|
|
@@ -1802,7 +1803,7 @@ var require_code2 = __commonJS((exports) => {
|
|
|
1802
1803
|
exports.validateUnion = validateUnion;
|
|
1803
1804
|
});
|
|
1804
1805
|
|
|
1805
|
-
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
1806
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1806
1807
|
var require_keyword = __commonJS((exports) => {
|
|
1807
1808
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1808
1809
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
|
|
@@ -1917,7 +1918,7 @@ var require_keyword = __commonJS((exports) => {
|
|
|
1917
1918
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
1918
1919
|
});
|
|
1919
1920
|
|
|
1920
|
-
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
1921
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1921
1922
|
var require_subschema = __commonJS((exports) => {
|
|
1922
1923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1923
1924
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
|
|
@@ -1997,7 +1998,7 @@ var require_subschema = __commonJS((exports) => {
|
|
|
1997
1998
|
exports.extendSubschemaMode = extendSubschemaMode;
|
|
1998
1999
|
});
|
|
1999
2000
|
|
|
2000
|
-
// node_modules/fast-deep-equal/index.js
|
|
2001
|
+
// node_modules/.bun/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
2001
2002
|
var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
2002
2003
|
module.exports = function equal(a, b) {
|
|
2003
2004
|
if (a === b)
|
|
@@ -2039,7 +2040,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
|
2039
2040
|
};
|
|
2040
2041
|
});
|
|
2041
2042
|
|
|
2042
|
-
// node_modules/json-schema-traverse/index.js
|
|
2043
|
+
// node_modules/.bun/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
2043
2044
|
var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
2044
2045
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
2045
2046
|
if (typeof opts == "function") {
|
|
@@ -2122,7 +2123,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
|
2122
2123
|
}
|
|
2123
2124
|
});
|
|
2124
2125
|
|
|
2125
|
-
// node_modules/ajv/dist/compile/resolve.js
|
|
2126
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js
|
|
2126
2127
|
var require_resolve = __commonJS((exports) => {
|
|
2127
2128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2128
2129
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
|
|
@@ -2275,7 +2276,7 @@ var require_resolve = __commonJS((exports) => {
|
|
|
2275
2276
|
exports.getSchemaRefs = getSchemaRefs;
|
|
2276
2277
|
});
|
|
2277
2278
|
|
|
2278
|
-
// node_modules/ajv/dist/compile/validate/index.js
|
|
2279
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2279
2280
|
var require_validate = __commonJS((exports) => {
|
|
2280
2281
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2281
2282
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
|
|
@@ -2780,7 +2781,7 @@ var require_validate = __commonJS((exports) => {
|
|
|
2780
2781
|
exports.getData = getData;
|
|
2781
2782
|
});
|
|
2782
2783
|
|
|
2783
|
-
// node_modules/ajv/dist/runtime/validation_error.js
|
|
2784
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2784
2785
|
var require_validation_error = __commonJS((exports) => {
|
|
2785
2786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2786
2787
|
|
|
@@ -2794,7 +2795,7 @@ var require_validation_error = __commonJS((exports) => {
|
|
|
2794
2795
|
exports.default = ValidationError;
|
|
2795
2796
|
});
|
|
2796
2797
|
|
|
2797
|
-
// node_modules/ajv/dist/compile/ref_error.js
|
|
2798
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2798
2799
|
var require_ref_error = __commonJS((exports) => {
|
|
2799
2800
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2800
2801
|
var resolve_1 = require_resolve();
|
|
@@ -2809,7 +2810,7 @@ var require_ref_error = __commonJS((exports) => {
|
|
|
2809
2810
|
exports.default = MissingRefError;
|
|
2810
2811
|
});
|
|
2811
2812
|
|
|
2812
|
-
// node_modules/ajv/dist/compile/index.js
|
|
2813
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/compile/index.js
|
|
2813
2814
|
var require_compile = __commonJS((exports) => {
|
|
2814
2815
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2815
2816
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
|
|
@@ -3030,7 +3031,7 @@ var require_compile = __commonJS((exports) => {
|
|
|
3030
3031
|
}
|
|
3031
3032
|
});
|
|
3032
3033
|
|
|
3033
|
-
// node_modules/ajv/dist/refs/data.json
|
|
3034
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/refs/data.json
|
|
3034
3035
|
var require_data = __commonJS((exports, module) => {
|
|
3035
3036
|
module.exports = {
|
|
3036
3037
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -3047,7 +3048,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
3047
3048
|
};
|
|
3048
3049
|
});
|
|
3049
3050
|
|
|
3050
|
-
// node_modules/fast-uri/lib/utils.js
|
|
3051
|
+
// node_modules/.bun/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
|
|
3051
3052
|
var require_utils = __commonJS((exports, module) => {
|
|
3052
3053
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3053
3054
|
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);
|
|
@@ -3302,7 +3303,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
3302
3303
|
};
|
|
3303
3304
|
});
|
|
3304
3305
|
|
|
3305
|
-
// node_modules/fast-uri/lib/schemes.js
|
|
3306
|
+
// node_modules/.bun/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js
|
|
3306
3307
|
var require_schemes = __commonJS((exports, module) => {
|
|
3307
3308
|
var { isUUID } = require_utils();
|
|
3308
3309
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -3476,7 +3477,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
3476
3477
|
};
|
|
3477
3478
|
});
|
|
3478
3479
|
|
|
3479
|
-
// node_modules/fast-uri/index.js
|
|
3480
|
+
// node_modules/.bun/fast-uri@3.1.0/node_modules/fast-uri/index.js
|
|
3480
3481
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
3481
3482
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
3482
3483
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -3727,7 +3728,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
3727
3728
|
module.exports.fastUri = fastUri;
|
|
3728
3729
|
});
|
|
3729
3730
|
|
|
3730
|
-
// node_modules/ajv/dist/runtime/uri.js
|
|
3731
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js
|
|
3731
3732
|
var require_uri = __commonJS((exports) => {
|
|
3732
3733
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3733
3734
|
var uri = require_fast_uri();
|
|
@@ -3735,7 +3736,7 @@ var require_uri = __commonJS((exports) => {
|
|
|
3735
3736
|
exports.default = uri;
|
|
3736
3737
|
});
|
|
3737
3738
|
|
|
3738
|
-
// node_modules/ajv/dist/core.js
|
|
3739
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/core.js
|
|
3739
3740
|
var require_core = __commonJS((exports) => {
|
|
3740
3741
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3741
3742
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
|
|
@@ -4328,7 +4329,7 @@ var require_core = __commonJS((exports) => {
|
|
|
4328
4329
|
}
|
|
4329
4330
|
});
|
|
4330
4331
|
|
|
4331
|
-
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
4332
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4332
4333
|
var require_id = __commonJS((exports) => {
|
|
4333
4334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4334
4335
|
var def = {
|
|
@@ -4340,7 +4341,7 @@ var require_id = __commonJS((exports) => {
|
|
|
4340
4341
|
exports.default = def;
|
|
4341
4342
|
});
|
|
4342
4343
|
|
|
4343
|
-
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4344
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4344
4345
|
var require_ref = __commonJS((exports) => {
|
|
4345
4346
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4346
4347
|
exports.callRef = exports.getValidate = undefined;
|
|
@@ -4459,7 +4460,7 @@ var require_ref = __commonJS((exports) => {
|
|
|
4459
4460
|
exports.default = def;
|
|
4460
4461
|
});
|
|
4461
4462
|
|
|
4462
|
-
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
4463
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4463
4464
|
var require_core2 = __commonJS((exports) => {
|
|
4464
4465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4465
4466
|
var id_1 = require_id();
|
|
@@ -4477,7 +4478,7 @@ var require_core2 = __commonJS((exports) => {
|
|
|
4477
4478
|
exports.default = core2;
|
|
4478
4479
|
});
|
|
4479
4480
|
|
|
4480
|
-
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4481
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4481
4482
|
var require_limitNumber = __commonJS((exports) => {
|
|
4482
4483
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4483
4484
|
var codegen_1 = require_codegen();
|
|
@@ -4506,7 +4507,7 @@ var require_limitNumber = __commonJS((exports) => {
|
|
|
4506
4507
|
exports.default = def;
|
|
4507
4508
|
});
|
|
4508
4509
|
|
|
4509
|
-
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4510
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4510
4511
|
var require_multipleOf = __commonJS((exports) => {
|
|
4511
4512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4512
4513
|
var codegen_1 = require_codegen();
|
|
@@ -4531,7 +4532,7 @@ var require_multipleOf = __commonJS((exports) => {
|
|
|
4531
4532
|
exports.default = def;
|
|
4532
4533
|
});
|
|
4533
4534
|
|
|
4534
|
-
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
4535
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4535
4536
|
var require_ucs2length = __commonJS((exports) => {
|
|
4536
4537
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4537
4538
|
function ucs2length(str) {
|
|
@@ -4554,7 +4555,7 @@ var require_ucs2length = __commonJS((exports) => {
|
|
|
4554
4555
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4555
4556
|
});
|
|
4556
4557
|
|
|
4557
|
-
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4558
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4558
4559
|
var require_limitLength = __commonJS((exports) => {
|
|
4559
4560
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4560
4561
|
var codegen_1 = require_codegen();
|
|
@@ -4583,7 +4584,7 @@ var require_limitLength = __commonJS((exports) => {
|
|
|
4583
4584
|
exports.default = def;
|
|
4584
4585
|
});
|
|
4585
4586
|
|
|
4586
|
-
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4587
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4587
4588
|
var require_pattern = __commonJS((exports) => {
|
|
4588
4589
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4589
4590
|
var code_1 = require_code2();
|
|
@@ -4617,7 +4618,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
4617
4618
|
exports.default = def;
|
|
4618
4619
|
});
|
|
4619
4620
|
|
|
4620
|
-
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4621
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4621
4622
|
var require_limitProperties = __commonJS((exports) => {
|
|
4622
4623
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4623
4624
|
var codegen_1 = require_codegen();
|
|
@@ -4643,7 +4644,7 @@ var require_limitProperties = __commonJS((exports) => {
|
|
|
4643
4644
|
exports.default = def;
|
|
4644
4645
|
});
|
|
4645
4646
|
|
|
4646
|
-
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4647
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4647
4648
|
var require_required = __commonJS((exports) => {
|
|
4648
4649
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4649
4650
|
var code_1 = require_code2();
|
|
@@ -4722,7 +4723,7 @@ var require_required = __commonJS((exports) => {
|
|
|
4722
4723
|
exports.default = def;
|
|
4723
4724
|
});
|
|
4724
4725
|
|
|
4725
|
-
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4726
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4726
4727
|
var require_limitItems = __commonJS((exports) => {
|
|
4727
4728
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4728
4729
|
var codegen_1 = require_codegen();
|
|
@@ -4748,7 +4749,7 @@ var require_limitItems = __commonJS((exports) => {
|
|
|
4748
4749
|
exports.default = def;
|
|
4749
4750
|
});
|
|
4750
4751
|
|
|
4751
|
-
// node_modules/ajv/dist/runtime/equal.js
|
|
4752
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
|
|
4752
4753
|
var require_equal = __commonJS((exports) => {
|
|
4753
4754
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4754
4755
|
var equal = require_fast_deep_equal();
|
|
@@ -4756,7 +4757,7 @@ var require_equal = __commonJS((exports) => {
|
|
|
4756
4757
|
exports.default = equal;
|
|
4757
4758
|
});
|
|
4758
4759
|
|
|
4759
|
-
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4760
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4760
4761
|
var require_uniqueItems = __commonJS((exports) => {
|
|
4761
4762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4762
4763
|
var dataType_1 = require_dataType();
|
|
@@ -4820,7 +4821,7 @@ var require_uniqueItems = __commonJS((exports) => {
|
|
|
4820
4821
|
exports.default = def;
|
|
4821
4822
|
});
|
|
4822
4823
|
|
|
4823
|
-
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4824
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4824
4825
|
var require_const = __commonJS((exports) => {
|
|
4825
4826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4826
4827
|
var codegen_1 = require_codegen();
|
|
@@ -4846,7 +4847,7 @@ var require_const = __commonJS((exports) => {
|
|
|
4846
4847
|
exports.default = def;
|
|
4847
4848
|
});
|
|
4848
4849
|
|
|
4849
|
-
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4850
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4850
4851
|
var require_enum = __commonJS((exports) => {
|
|
4851
4852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4852
4853
|
var codegen_1 = require_codegen();
|
|
@@ -4892,7 +4893,7 @@ var require_enum = __commonJS((exports) => {
|
|
|
4892
4893
|
exports.default = def;
|
|
4893
4894
|
});
|
|
4894
4895
|
|
|
4895
|
-
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
4896
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
4896
4897
|
var require_validation = __commonJS((exports) => {
|
|
4897
4898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4898
4899
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -4922,7 +4923,7 @@ var require_validation = __commonJS((exports) => {
|
|
|
4922
4923
|
exports.default = validation;
|
|
4923
4924
|
});
|
|
4924
4925
|
|
|
4925
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
4926
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
4926
4927
|
var require_additionalItems = __commonJS((exports) => {
|
|
4927
4928
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4928
4929
|
exports.validateAdditionalItems = undefined;
|
|
@@ -4972,7 +4973,7 @@ var require_additionalItems = __commonJS((exports) => {
|
|
|
4972
4973
|
exports.default = def;
|
|
4973
4974
|
});
|
|
4974
4975
|
|
|
4975
|
-
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
4976
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
4976
4977
|
var require_items = __commonJS((exports) => {
|
|
4977
4978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4978
4979
|
exports.validateTuple = undefined;
|
|
@@ -5026,7 +5027,7 @@ var require_items = __commonJS((exports) => {
|
|
|
5026
5027
|
exports.default = def;
|
|
5027
5028
|
});
|
|
5028
5029
|
|
|
5029
|
-
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5030
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5030
5031
|
var require_prefixItems = __commonJS((exports) => {
|
|
5031
5032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5032
5033
|
var items_1 = require_items();
|
|
@@ -5040,7 +5041,7 @@ var require_prefixItems = __commonJS((exports) => {
|
|
|
5040
5041
|
exports.default = def;
|
|
5041
5042
|
});
|
|
5042
5043
|
|
|
5043
|
-
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5044
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5044
5045
|
var require_items2020 = __commonJS((exports) => {
|
|
5045
5046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5046
5047
|
var codegen_1 = require_codegen();
|
|
@@ -5072,7 +5073,7 @@ var require_items2020 = __commonJS((exports) => {
|
|
|
5072
5073
|
exports.default = def;
|
|
5073
5074
|
});
|
|
5074
5075
|
|
|
5075
|
-
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5076
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5076
5077
|
var require_contains = __commonJS((exports) => {
|
|
5077
5078
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5078
5079
|
var codegen_1 = require_codegen();
|
|
@@ -5163,7 +5164,7 @@ var require_contains = __commonJS((exports) => {
|
|
|
5163
5164
|
exports.default = def;
|
|
5164
5165
|
});
|
|
5165
5166
|
|
|
5166
|
-
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5167
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5167
5168
|
var require_dependencies = __commonJS((exports) => {
|
|
5168
5169
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5169
5170
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
|
|
@@ -5248,7 +5249,7 @@ var require_dependencies = __commonJS((exports) => {
|
|
|
5248
5249
|
exports.default = def;
|
|
5249
5250
|
});
|
|
5250
5251
|
|
|
5251
|
-
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5252
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5252
5253
|
var require_propertyNames = __commonJS((exports) => {
|
|
5253
5254
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5254
5255
|
var codegen_1 = require_codegen();
|
|
@@ -5288,7 +5289,7 @@ var require_propertyNames = __commonJS((exports) => {
|
|
|
5288
5289
|
exports.default = def;
|
|
5289
5290
|
});
|
|
5290
5291
|
|
|
5291
|
-
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5292
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5292
5293
|
var require_additionalProperties = __commonJS((exports) => {
|
|
5293
5294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5294
5295
|
var code_1 = require_code2();
|
|
@@ -5391,7 +5392,7 @@ var require_additionalProperties = __commonJS((exports) => {
|
|
|
5391
5392
|
exports.default = def;
|
|
5392
5393
|
});
|
|
5393
5394
|
|
|
5394
|
-
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5395
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5395
5396
|
var require_properties = __commonJS((exports) => {
|
|
5396
5397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5397
5398
|
var validate_1 = require_validate();
|
|
@@ -5446,7 +5447,7 @@ var require_properties = __commonJS((exports) => {
|
|
|
5446
5447
|
exports.default = def;
|
|
5447
5448
|
});
|
|
5448
5449
|
|
|
5449
|
-
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5450
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5450
5451
|
var require_patternProperties = __commonJS((exports) => {
|
|
5451
5452
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5452
5453
|
var code_1 = require_code2();
|
|
@@ -5517,7 +5518,7 @@ var require_patternProperties = __commonJS((exports) => {
|
|
|
5517
5518
|
exports.default = def;
|
|
5518
5519
|
});
|
|
5519
5520
|
|
|
5520
|
-
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5521
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5521
5522
|
var require_not = __commonJS((exports) => {
|
|
5522
5523
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5523
5524
|
var util_1 = require_util();
|
|
@@ -5545,7 +5546,7 @@ var require_not = __commonJS((exports) => {
|
|
|
5545
5546
|
exports.default = def;
|
|
5546
5547
|
});
|
|
5547
5548
|
|
|
5548
|
-
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5549
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5549
5550
|
var require_anyOf = __commonJS((exports) => {
|
|
5550
5551
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5551
5552
|
var code_1 = require_code2();
|
|
@@ -5559,7 +5560,7 @@ var require_anyOf = __commonJS((exports) => {
|
|
|
5559
5560
|
exports.default = def;
|
|
5560
5561
|
});
|
|
5561
5562
|
|
|
5562
|
-
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5563
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5563
5564
|
var require_oneOf = __commonJS((exports) => {
|
|
5564
5565
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5565
5566
|
var codegen_1 = require_codegen();
|
|
@@ -5614,7 +5615,7 @@ var require_oneOf = __commonJS((exports) => {
|
|
|
5614
5615
|
exports.default = def;
|
|
5615
5616
|
});
|
|
5616
5617
|
|
|
5617
|
-
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5618
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5618
5619
|
var require_allOf = __commonJS((exports) => {
|
|
5619
5620
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5620
5621
|
var util_1 = require_util();
|
|
@@ -5638,7 +5639,7 @@ var require_allOf = __commonJS((exports) => {
|
|
|
5638
5639
|
exports.default = def;
|
|
5639
5640
|
});
|
|
5640
5641
|
|
|
5641
|
-
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5642
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5642
5643
|
var require_if = __commonJS((exports) => {
|
|
5643
5644
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5644
5645
|
var codegen_1 = require_codegen();
|
|
@@ -5704,7 +5705,7 @@ var require_if = __commonJS((exports) => {
|
|
|
5704
5705
|
exports.default = def;
|
|
5705
5706
|
});
|
|
5706
5707
|
|
|
5707
|
-
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5708
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5708
5709
|
var require_thenElse = __commonJS((exports) => {
|
|
5709
5710
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5710
5711
|
var util_1 = require_util();
|
|
@@ -5719,7 +5720,7 @@ var require_thenElse = __commonJS((exports) => {
|
|
|
5719
5720
|
exports.default = def;
|
|
5720
5721
|
});
|
|
5721
5722
|
|
|
5722
|
-
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5723
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5723
5724
|
var require_applicator = __commonJS((exports) => {
|
|
5724
5725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5725
5726
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -5762,7 +5763,7 @@ var require_applicator = __commonJS((exports) => {
|
|
|
5762
5763
|
exports.default = getApplicator;
|
|
5763
5764
|
});
|
|
5764
5765
|
|
|
5765
|
-
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
5766
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
5766
5767
|
var require_format = __commonJS((exports) => {
|
|
5767
5768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5768
5769
|
var codegen_1 = require_codegen();
|
|
@@ -5849,7 +5850,7 @@ var require_format = __commonJS((exports) => {
|
|
|
5849
5850
|
exports.default = def;
|
|
5850
5851
|
});
|
|
5851
5852
|
|
|
5852
|
-
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
5853
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
5853
5854
|
var require_format2 = __commonJS((exports) => {
|
|
5854
5855
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5855
5856
|
var format_1 = require_format();
|
|
@@ -5857,7 +5858,7 @@ var require_format2 = __commonJS((exports) => {
|
|
|
5857
5858
|
exports.default = format;
|
|
5858
5859
|
});
|
|
5859
5860
|
|
|
5860
|
-
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
5861
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
5861
5862
|
var require_metadata = __commonJS((exports) => {
|
|
5862
5863
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5863
5864
|
exports.contentVocabulary = exports.metadataVocabulary = undefined;
|
|
@@ -5877,7 +5878,7 @@ var require_metadata = __commonJS((exports) => {
|
|
|
5877
5878
|
];
|
|
5878
5879
|
});
|
|
5879
5880
|
|
|
5880
|
-
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
5881
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
5881
5882
|
var require_draft7 = __commonJS((exports) => {
|
|
5882
5883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5883
5884
|
var core_1 = require_core2();
|
|
@@ -5896,7 +5897,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
5896
5897
|
exports.default = draft7Vocabularies;
|
|
5897
5898
|
});
|
|
5898
5899
|
|
|
5899
|
-
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
5900
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
5900
5901
|
var require_types = __commonJS((exports) => {
|
|
5901
5902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5902
5903
|
exports.DiscrError = undefined;
|
|
@@ -5907,7 +5908,7 @@ var require_types = __commonJS((exports) => {
|
|
|
5907
5908
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
5908
5909
|
});
|
|
5909
5910
|
|
|
5910
|
-
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
5911
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
5911
5912
|
var require_discriminator = __commonJS((exports) => {
|
|
5912
5913
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5913
5914
|
var codegen_1 = require_codegen();
|
|
@@ -6009,7 +6010,7 @@ var require_discriminator = __commonJS((exports) => {
|
|
|
6009
6010
|
exports.default = def;
|
|
6010
6011
|
});
|
|
6011
6012
|
|
|
6012
|
-
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6013
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6013
6014
|
var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
6014
6015
|
module.exports = {
|
|
6015
6016
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6164,7 +6165,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
|
6164
6165
|
};
|
|
6165
6166
|
});
|
|
6166
6167
|
|
|
6167
|
-
// node_modules/ajv/dist/ajv.js
|
|
6168
|
+
// node_modules/.bun/ajv@8.18.0/node_modules/ajv/dist/ajv.js
|
|
6168
6169
|
var require_ajv = __commonJS((exports, module) => {
|
|
6169
6170
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6170
6171
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
|
|
@@ -6232,7 +6233,7 @@ var require_ajv = __commonJS((exports, module) => {
|
|
|
6232
6233
|
} });
|
|
6233
6234
|
});
|
|
6234
6235
|
|
|
6235
|
-
// node_modules/ajv-formats/dist/formats.js
|
|
6236
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/formats.js
|
|
6236
6237
|
var require_formats = __commonJS((exports) => {
|
|
6237
6238
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6238
6239
|
exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
|
|
@@ -6409,7 +6410,7 @@ var require_formats = __commonJS((exports) => {
|
|
|
6409
6410
|
}
|
|
6410
6411
|
});
|
|
6411
6412
|
|
|
6412
|
-
// node_modules/ajv-formats/dist/limit.js
|
|
6413
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/limit.js
|
|
6413
6414
|
var require_limit = __commonJS((exports) => {
|
|
6414
6415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6415
6416
|
exports.formatLimitDefinition = undefined;
|
|
@@ -6478,7 +6479,7 @@ var require_limit = __commonJS((exports) => {
|
|
|
6478
6479
|
exports.default = formatLimitPlugin;
|
|
6479
6480
|
});
|
|
6480
6481
|
|
|
6481
|
-
// node_modules/ajv-formats/dist/index.js
|
|
6482
|
+
// node_modules/.bun/ajv-formats@3.0.1/node_modules/ajv-formats/dist/index.js
|
|
6482
6483
|
var require_dist = __commonJS((exports, module) => {
|
|
6483
6484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6484
6485
|
var formats_1 = require_formats();
|
|
@@ -6517,7 +6518,7 @@ var require_dist = __commonJS((exports, module) => {
|
|
|
6517
6518
|
exports.default = formatsPlugin;
|
|
6518
6519
|
});
|
|
6519
6520
|
|
|
6520
|
-
// node_modules/zod/v3/external.js
|
|
6521
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/external.js
|
|
6521
6522
|
var exports_external = {};
|
|
6522
6523
|
__export(exports_external, {
|
|
6523
6524
|
void: () => voidType,
|
|
@@ -6629,7 +6630,7 @@ __export(exports_external, {
|
|
|
6629
6630
|
BRAND: () => BRAND
|
|
6630
6631
|
});
|
|
6631
6632
|
|
|
6632
|
-
// node_modules/zod/v3/helpers/util.js
|
|
6633
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
|
|
6633
6634
|
var util;
|
|
6634
6635
|
(function(util2) {
|
|
6635
6636
|
util2.assertEqual = (_) => {};
|
|
@@ -6760,7 +6761,7 @@ var getParsedType = (data) => {
|
|
|
6760
6761
|
}
|
|
6761
6762
|
};
|
|
6762
6763
|
|
|
6763
|
-
// node_modules/zod/v3/ZodError.js
|
|
6764
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/ZodError.js
|
|
6764
6765
|
var ZodIssueCode = util.arrayToEnum([
|
|
6765
6766
|
"invalid_type",
|
|
6766
6767
|
"invalid_literal",
|
|
@@ -6879,7 +6880,7 @@ ZodError.create = (issues) => {
|
|
|
6879
6880
|
return error;
|
|
6880
6881
|
};
|
|
6881
6882
|
|
|
6882
|
-
// node_modules/zod/v3/locales/en.js
|
|
6883
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/locales/en.js
|
|
6883
6884
|
var errorMap = (issue, _ctx) => {
|
|
6884
6885
|
let message;
|
|
6885
6886
|
switch (issue.code) {
|
|
@@ -6982,7 +6983,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
6982
6983
|
};
|
|
6983
6984
|
var en_default = errorMap;
|
|
6984
6985
|
|
|
6985
|
-
// node_modules/zod/v3/errors.js
|
|
6986
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/errors.js
|
|
6986
6987
|
var overrideErrorMap = en_default;
|
|
6987
6988
|
function setErrorMap(map) {
|
|
6988
6989
|
overrideErrorMap = map;
|
|
@@ -6990,7 +6991,7 @@ function setErrorMap(map) {
|
|
|
6990
6991
|
function getErrorMap() {
|
|
6991
6992
|
return overrideErrorMap;
|
|
6992
6993
|
}
|
|
6993
|
-
// node_modules/zod/v3/helpers/parseUtil.js
|
|
6994
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
6994
6995
|
var makeIssue = (params) => {
|
|
6995
6996
|
const { data, path, errorMaps, issueData } = params;
|
|
6996
6997
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -7096,14 +7097,14 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
7096
7097
|
var isDirty = (x) => x.status === "dirty";
|
|
7097
7098
|
var isValid = (x) => x.status === "valid";
|
|
7098
7099
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
7099
|
-
// node_modules/zod/v3/helpers/errorUtil.js
|
|
7100
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.js
|
|
7100
7101
|
var errorUtil;
|
|
7101
7102
|
(function(errorUtil2) {
|
|
7102
7103
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
7103
7104
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
7104
7105
|
})(errorUtil || (errorUtil = {}));
|
|
7105
7106
|
|
|
7106
|
-
// node_modules/zod/v3/types.js
|
|
7107
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v3/types.js
|
|
7107
7108
|
class ParseInputLazyPath {
|
|
7108
7109
|
constructor(parent, value, path, key) {
|
|
7109
7110
|
this._cachedPath = [];
|
|
@@ -10490,7 +10491,7 @@ var coerce = {
|
|
|
10490
10491
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
10491
10492
|
};
|
|
10492
10493
|
var NEVER = INVALID;
|
|
10493
|
-
// node_modules/zod/v4/core/core.js
|
|
10494
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/core.js
|
|
10494
10495
|
var NEVER2 = Object.freeze({
|
|
10495
10496
|
status: "aborted"
|
|
10496
10497
|
});
|
|
@@ -10550,7 +10551,7 @@ function config(newConfig) {
|
|
|
10550
10551
|
Object.assign(globalConfig, newConfig);
|
|
10551
10552
|
return globalConfig;
|
|
10552
10553
|
}
|
|
10553
|
-
// node_modules/zod/v4/core/util.js
|
|
10554
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/util.js
|
|
10554
10555
|
var exports_util = {};
|
|
10555
10556
|
__export(exports_util, {
|
|
10556
10557
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -11064,7 +11065,7 @@ class Class {
|
|
|
11064
11065
|
constructor(..._args) {}
|
|
11065
11066
|
}
|
|
11066
11067
|
|
|
11067
|
-
// node_modules/zod/v4/core/errors.js
|
|
11068
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/errors.js
|
|
11068
11069
|
var initializer = (inst, def) => {
|
|
11069
11070
|
inst.name = "$ZodError";
|
|
11070
11071
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -11138,7 +11139,7 @@ function formatError(error, _mapper) {
|
|
|
11138
11139
|
return fieldErrors;
|
|
11139
11140
|
}
|
|
11140
11141
|
|
|
11141
|
-
// node_modules/zod/v4/core/parse.js
|
|
11142
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/parse.js
|
|
11142
11143
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
11143
11144
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
11144
11145
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -11189,7 +11190,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
11189
11190
|
} : { success: true, data: result.value };
|
|
11190
11191
|
};
|
|
11191
11192
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
11192
|
-
// node_modules/zod/v4/core/regexes.js
|
|
11193
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/regexes.js
|
|
11193
11194
|
var cuid = /^[cC][^\s-]{8,}$/;
|
|
11194
11195
|
var cuid2 = /^[0-9a-z]+$/;
|
|
11195
11196
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -11247,7 +11248,7 @@ var _null = /null/i;
|
|
|
11247
11248
|
var lowercase = /^[^A-Z]*$/;
|
|
11248
11249
|
var uppercase = /^[^a-z]*$/;
|
|
11249
11250
|
|
|
11250
|
-
// node_modules/zod/v4/core/checks.js
|
|
11251
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/checks.js
|
|
11251
11252
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
11252
11253
|
var _a;
|
|
11253
11254
|
inst._zod ?? (inst._zod = {});
|
|
@@ -11631,7 +11632,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
11631
11632
|
};
|
|
11632
11633
|
});
|
|
11633
11634
|
|
|
11634
|
-
// node_modules/zod/v4/core/doc.js
|
|
11635
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/doc.js
|
|
11635
11636
|
class Doc {
|
|
11636
11637
|
constructor(args = []) {
|
|
11637
11638
|
this.content = [];
|
|
@@ -11669,14 +11670,14 @@ class Doc {
|
|
|
11669
11670
|
}
|
|
11670
11671
|
}
|
|
11671
11672
|
|
|
11672
|
-
// node_modules/zod/v4/core/versions.js
|
|
11673
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/versions.js
|
|
11673
11674
|
var version = {
|
|
11674
11675
|
major: 4,
|
|
11675
11676
|
minor: 0,
|
|
11676
11677
|
patch: 0
|
|
11677
11678
|
};
|
|
11678
11679
|
|
|
11679
|
-
// node_modules/zod/v4/core/schemas.js
|
|
11680
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/schemas.js
|
|
11680
11681
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
11681
11682
|
var _a;
|
|
11682
11683
|
inst ?? (inst = {});
|
|
@@ -12907,7 +12908,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
12907
12908
|
payload.issues.push(issue(_iss));
|
|
12908
12909
|
}
|
|
12909
12910
|
}
|
|
12910
|
-
// node_modules/zod/v4/locales/en.js
|
|
12911
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/locales/en.js
|
|
12911
12912
|
var parsedType = (data) => {
|
|
12912
12913
|
const t = typeof data;
|
|
12913
12914
|
switch (t) {
|
|
@@ -13024,7 +13025,7 @@ function en_default2() {
|
|
|
13024
13025
|
localeError: error()
|
|
13025
13026
|
};
|
|
13026
13027
|
}
|
|
13027
|
-
// node_modules/zod/v4/core/registries.js
|
|
13028
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/registries.js
|
|
13028
13029
|
var $output = Symbol("ZodOutput");
|
|
13029
13030
|
var $input = Symbol("ZodInput");
|
|
13030
13031
|
|
|
@@ -13074,7 +13075,7 @@ function registry() {
|
|
|
13074
13075
|
return new $ZodRegistry;
|
|
13075
13076
|
}
|
|
13076
13077
|
var globalRegistry = /* @__PURE__ */ registry();
|
|
13077
|
-
// node_modules/zod/v4/core/api.js
|
|
13078
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/api.js
|
|
13078
13079
|
function _string(Class2, params) {
|
|
13079
13080
|
return new Class2({
|
|
13080
13081
|
type: "string",
|
|
@@ -13509,7 +13510,7 @@ function _refine(Class2, fn, _params) {
|
|
|
13509
13510
|
});
|
|
13510
13511
|
return schema;
|
|
13511
13512
|
}
|
|
13512
|
-
// node_modules/zod/v4/core/to-json-schema.js
|
|
13513
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/core/to-json-schema.js
|
|
13513
13514
|
class JSONSchemaGenerator {
|
|
13514
13515
|
constructor(params) {
|
|
13515
13516
|
this.counter = 0;
|
|
@@ -14261,7 +14262,7 @@ function isTransforming(_schema, _ctx) {
|
|
|
14261
14262
|
}
|
|
14262
14263
|
throw new Error(`Unknown schema type: ${def.type}`);
|
|
14263
14264
|
}
|
|
14264
|
-
// node_modules/zod/v4/mini/schemas.js
|
|
14265
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/mini/schemas.js
|
|
14265
14266
|
var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
14266
14267
|
if (!inst._zod)
|
|
14267
14268
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
@@ -14303,7 +14304,7 @@ function object(shape, params) {
|
|
|
14303
14304
|
};
|
|
14304
14305
|
return new ZodMiniObject(def);
|
|
14305
14306
|
}
|
|
14306
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
14307
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
14307
14308
|
function isZ4Schema(s) {
|
|
14308
14309
|
const schema = s;
|
|
14309
14310
|
return !!schema._zod;
|
|
@@ -14446,7 +14447,7 @@ function getLiteralValue(schema) {
|
|
|
14446
14447
|
return directValue;
|
|
14447
14448
|
return;
|
|
14448
14449
|
}
|
|
14449
|
-
// node_modules/zod/v4/classic/iso.js
|
|
14450
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/iso.js
|
|
14450
14451
|
var exports_iso2 = {};
|
|
14451
14452
|
__export(exports_iso2, {
|
|
14452
14453
|
time: () => time2,
|
|
@@ -14487,7 +14488,7 @@ function duration2(params) {
|
|
|
14487
14488
|
return _isoDuration(ZodISODuration, params);
|
|
14488
14489
|
}
|
|
14489
14490
|
|
|
14490
|
-
// node_modules/zod/v4/classic/errors.js
|
|
14491
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/errors.js
|
|
14491
14492
|
var initializer2 = (inst, issues) => {
|
|
14492
14493
|
$ZodError.init(inst, issues);
|
|
14493
14494
|
inst.name = "ZodError";
|
|
@@ -14516,13 +14517,13 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
14516
14517
|
Parent: Error
|
|
14517
14518
|
});
|
|
14518
14519
|
|
|
14519
|
-
// node_modules/zod/v4/classic/parse.js
|
|
14520
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/parse.js
|
|
14520
14521
|
var parse4 = /* @__PURE__ */ _parse(ZodRealError);
|
|
14521
14522
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
14522
14523
|
var safeParse3 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
14523
14524
|
var safeParseAsync3 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
14524
14525
|
|
|
14525
|
-
// node_modules/zod/v4/classic/schemas.js
|
|
14526
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/schemas.js
|
|
14526
14527
|
var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
14527
14528
|
$ZodType.init(inst, def);
|
|
14528
14529
|
inst.def = def;
|
|
@@ -15127,10 +15128,10 @@ function superRefine(fn) {
|
|
|
15127
15128
|
function preprocess(fn, schema) {
|
|
15128
15129
|
return pipe(transform(fn), schema);
|
|
15129
15130
|
}
|
|
15130
|
-
// node_modules/zod/v4/classic/external.js
|
|
15131
|
+
// node_modules/.bun/zod@3.25.76/node_modules/zod/v4/classic/external.js
|
|
15131
15132
|
config(en_default2());
|
|
15132
15133
|
|
|
15133
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
15134
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
15134
15135
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
15135
15136
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
15136
15137
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -15972,12 +15973,12 @@ class UrlElicitationRequiredError extends McpError {
|
|
|
15972
15973
|
}
|
|
15973
15974
|
}
|
|
15974
15975
|
|
|
15975
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
15976
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
15976
15977
|
function isTerminal(status) {
|
|
15977
15978
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
15978
15979
|
}
|
|
15979
15980
|
|
|
15980
|
-
// node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
15981
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
15981
15982
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
15982
15983
|
var defaultOptions = {
|
|
15983
15984
|
name: undefined,
|
|
@@ -16010,7 +16011,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
16010
16011
|
...defaultOptions,
|
|
16011
16012
|
...options
|
|
16012
16013
|
};
|
|
16013
|
-
// node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
16014
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
16014
16015
|
var getRefs = (options) => {
|
|
16015
16016
|
const _options = getDefaultOptions(options);
|
|
16016
16017
|
const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -16029,7 +16030,7 @@ var getRefs = (options) => {
|
|
|
16029
16030
|
]))
|
|
16030
16031
|
};
|
|
16031
16032
|
};
|
|
16032
|
-
// node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
16033
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
16033
16034
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
16034
16035
|
if (!refs?.errorMessages)
|
|
16035
16036
|
return;
|
|
@@ -16044,7 +16045,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
16044
16045
|
res[key] = value;
|
|
16045
16046
|
addErrorMessage(res, key, errorMessage, refs);
|
|
16046
16047
|
}
|
|
16047
|
-
// node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
16048
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
16048
16049
|
var getRelativePath = (pathA, pathB) => {
|
|
16049
16050
|
let i = 0;
|
|
16050
16051
|
for (;i < pathA.length && i < pathB.length; i++) {
|
|
@@ -16053,7 +16054,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
16053
16054
|
}
|
|
16054
16055
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
16055
16056
|
};
|
|
16056
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
16057
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
16057
16058
|
function parseAnyDef(refs) {
|
|
16058
16059
|
if (refs.target !== "openAi") {
|
|
16059
16060
|
return {};
|
|
@@ -16069,7 +16070,7 @@ function parseAnyDef(refs) {
|
|
|
16069
16070
|
};
|
|
16070
16071
|
}
|
|
16071
16072
|
|
|
16072
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
16073
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
16073
16074
|
function parseArrayDef(def, refs) {
|
|
16074
16075
|
const res = {
|
|
16075
16076
|
type: "array"
|
|
@@ -16093,7 +16094,7 @@ function parseArrayDef(def, refs) {
|
|
|
16093
16094
|
return res;
|
|
16094
16095
|
}
|
|
16095
16096
|
|
|
16096
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
16097
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
16097
16098
|
function parseBigintDef(def, refs) {
|
|
16098
16099
|
const res = {
|
|
16099
16100
|
type: "integer",
|
|
@@ -16139,24 +16140,24 @@ function parseBigintDef(def, refs) {
|
|
|
16139
16140
|
return res;
|
|
16140
16141
|
}
|
|
16141
16142
|
|
|
16142
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
16143
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
16143
16144
|
function parseBooleanDef() {
|
|
16144
16145
|
return {
|
|
16145
16146
|
type: "boolean"
|
|
16146
16147
|
};
|
|
16147
16148
|
}
|
|
16148
16149
|
|
|
16149
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
16150
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
16150
16151
|
function parseBrandedDef(_def, refs) {
|
|
16151
16152
|
return parseDef(_def.type._def, refs);
|
|
16152
16153
|
}
|
|
16153
16154
|
|
|
16154
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
16155
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
16155
16156
|
var parseCatchDef = (def, refs) => {
|
|
16156
16157
|
return parseDef(def.innerType._def, refs);
|
|
16157
16158
|
};
|
|
16158
16159
|
|
|
16159
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
16160
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
16160
16161
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
16161
16162
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
16162
16163
|
if (Array.isArray(strategy)) {
|
|
@@ -16201,7 +16202,7 @@ var integerDateParser = (def, refs) => {
|
|
|
16201
16202
|
return res;
|
|
16202
16203
|
};
|
|
16203
16204
|
|
|
16204
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
16205
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
16205
16206
|
function parseDefaultDef(_def, refs) {
|
|
16206
16207
|
return {
|
|
16207
16208
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -16209,12 +16210,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
16209
16210
|
};
|
|
16210
16211
|
}
|
|
16211
16212
|
|
|
16212
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
16213
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
16213
16214
|
function parseEffectsDef(_def, refs) {
|
|
16214
16215
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
16215
16216
|
}
|
|
16216
16217
|
|
|
16217
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
16218
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
16218
16219
|
function parseEnumDef(def) {
|
|
16219
16220
|
return {
|
|
16220
16221
|
type: "string",
|
|
@@ -16222,7 +16223,7 @@ function parseEnumDef(def) {
|
|
|
16222
16223
|
};
|
|
16223
16224
|
}
|
|
16224
16225
|
|
|
16225
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
16226
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
16226
16227
|
var isJsonSchema7AllOfType = (type) => {
|
|
16227
16228
|
if ("type" in type && type.type === "string")
|
|
16228
16229
|
return false;
|
|
@@ -16264,7 +16265,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
16264
16265
|
} : undefined;
|
|
16265
16266
|
}
|
|
16266
16267
|
|
|
16267
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
16268
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
16268
16269
|
function parseLiteralDef(def, refs) {
|
|
16269
16270
|
const parsedType2 = typeof def.value;
|
|
16270
16271
|
if (parsedType2 !== "bigint" && parsedType2 !== "number" && parsedType2 !== "boolean" && parsedType2 !== "string") {
|
|
@@ -16284,7 +16285,7 @@ function parseLiteralDef(def, refs) {
|
|
|
16284
16285
|
};
|
|
16285
16286
|
}
|
|
16286
16287
|
|
|
16287
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
16288
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
16288
16289
|
var emojiRegex2 = undefined;
|
|
16289
16290
|
var zodPatterns = {
|
|
16290
16291
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
@@ -16581,7 +16582,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
16581
16582
|
return pattern;
|
|
16582
16583
|
}
|
|
16583
16584
|
|
|
16584
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
16585
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
16585
16586
|
function parseRecordDef(def, refs) {
|
|
16586
16587
|
if (refs.target === "openAi") {
|
|
16587
16588
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -16633,7 +16634,7 @@ function parseRecordDef(def, refs) {
|
|
|
16633
16634
|
return schema;
|
|
16634
16635
|
}
|
|
16635
16636
|
|
|
16636
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
16637
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
16637
16638
|
function parseMapDef(def, refs) {
|
|
16638
16639
|
if (refs.mapStrategy === "record") {
|
|
16639
16640
|
return parseRecordDef(def, refs);
|
|
@@ -16658,7 +16659,7 @@ function parseMapDef(def, refs) {
|
|
|
16658
16659
|
};
|
|
16659
16660
|
}
|
|
16660
16661
|
|
|
16661
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
16662
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
16662
16663
|
function parseNativeEnumDef(def) {
|
|
16663
16664
|
const object3 = def.values;
|
|
16664
16665
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -16672,7 +16673,7 @@ function parseNativeEnumDef(def) {
|
|
|
16672
16673
|
};
|
|
16673
16674
|
}
|
|
16674
16675
|
|
|
16675
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
16676
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
16676
16677
|
function parseNeverDef(refs) {
|
|
16677
16678
|
return refs.target === "openAi" ? undefined : {
|
|
16678
16679
|
not: parseAnyDef({
|
|
@@ -16682,7 +16683,7 @@ function parseNeverDef(refs) {
|
|
|
16682
16683
|
};
|
|
16683
16684
|
}
|
|
16684
16685
|
|
|
16685
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
16686
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
16686
16687
|
function parseNullDef(refs) {
|
|
16687
16688
|
return refs.target === "openApi3" ? {
|
|
16688
16689
|
enum: ["null"],
|
|
@@ -16692,7 +16693,7 @@ function parseNullDef(refs) {
|
|
|
16692
16693
|
};
|
|
16693
16694
|
}
|
|
16694
16695
|
|
|
16695
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
16696
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
16696
16697
|
var primitiveMappings = {
|
|
16697
16698
|
ZodString: "string",
|
|
16698
16699
|
ZodNumber: "number",
|
|
@@ -16760,7 +16761,7 @@ var asAnyOf = (def, refs) => {
|
|
|
16760
16761
|
return anyOf.length ? { anyOf } : undefined;
|
|
16761
16762
|
};
|
|
16762
16763
|
|
|
16763
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
16764
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
16764
16765
|
function parseNullableDef(def, refs) {
|
|
16765
16766
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
16766
16767
|
if (refs.target === "openApi3") {
|
|
@@ -16792,7 +16793,7 @@ function parseNullableDef(def, refs) {
|
|
|
16792
16793
|
return base && { anyOf: [base, { type: "null" }] };
|
|
16793
16794
|
}
|
|
16794
16795
|
|
|
16795
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
16796
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
16796
16797
|
function parseNumberDef(def, refs) {
|
|
16797
16798
|
const res = {
|
|
16798
16799
|
type: "number"
|
|
@@ -16841,7 +16842,7 @@ function parseNumberDef(def, refs) {
|
|
|
16841
16842
|
return res;
|
|
16842
16843
|
}
|
|
16843
16844
|
|
|
16844
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
16845
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
16845
16846
|
function parseObjectDef(def, refs) {
|
|
16846
16847
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
16847
16848
|
const result = {
|
|
@@ -16911,7 +16912,7 @@ function safeIsOptional(schema) {
|
|
|
16911
16912
|
}
|
|
16912
16913
|
}
|
|
16913
16914
|
|
|
16914
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
16915
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
16915
16916
|
var parseOptionalDef = (def, refs) => {
|
|
16916
16917
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
16917
16918
|
return parseDef(def.innerType._def, refs);
|
|
@@ -16930,7 +16931,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
16930
16931
|
} : parseAnyDef(refs);
|
|
16931
16932
|
};
|
|
16932
16933
|
|
|
16933
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
16934
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
16934
16935
|
var parsePipelineDef = (def, refs) => {
|
|
16935
16936
|
if (refs.pipeStrategy === "input") {
|
|
16936
16937
|
return parseDef(def.in._def, refs);
|
|
@@ -16950,12 +16951,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
16950
16951
|
};
|
|
16951
16952
|
};
|
|
16952
16953
|
|
|
16953
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
16954
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
16954
16955
|
function parsePromiseDef(def, refs) {
|
|
16955
16956
|
return parseDef(def.type._def, refs);
|
|
16956
16957
|
}
|
|
16957
16958
|
|
|
16958
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
16959
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
16959
16960
|
function parseSetDef(def, refs) {
|
|
16960
16961
|
const items = parseDef(def.valueType._def, {
|
|
16961
16962
|
...refs,
|
|
@@ -16975,7 +16976,7 @@ function parseSetDef(def, refs) {
|
|
|
16975
16976
|
return schema;
|
|
16976
16977
|
}
|
|
16977
16978
|
|
|
16978
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
16979
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
16979
16980
|
function parseTupleDef(def, refs) {
|
|
16980
16981
|
if (def.rest) {
|
|
16981
16982
|
return {
|
|
@@ -17003,24 +17004,24 @@ function parseTupleDef(def, refs) {
|
|
|
17003
17004
|
}
|
|
17004
17005
|
}
|
|
17005
17006
|
|
|
17006
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
17007
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
17007
17008
|
function parseUndefinedDef(refs) {
|
|
17008
17009
|
return {
|
|
17009
17010
|
not: parseAnyDef(refs)
|
|
17010
17011
|
};
|
|
17011
17012
|
}
|
|
17012
17013
|
|
|
17013
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
17014
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
17014
17015
|
function parseUnknownDef(refs) {
|
|
17015
17016
|
return parseAnyDef(refs);
|
|
17016
17017
|
}
|
|
17017
17018
|
|
|
17018
|
-
// node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
17019
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
17019
17020
|
var parseReadonlyDef = (def, refs) => {
|
|
17020
17021
|
return parseDef(def.innerType._def, refs);
|
|
17021
17022
|
};
|
|
17022
17023
|
|
|
17023
|
-
// node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
17024
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
17024
17025
|
var selectParser = (def, typeName, refs) => {
|
|
17025
17026
|
switch (typeName) {
|
|
17026
17027
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -17098,7 +17099,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
17098
17099
|
}
|
|
17099
17100
|
};
|
|
17100
17101
|
|
|
17101
|
-
// node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
17102
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
17102
17103
|
function parseDef(def, refs, forceResolution = false) {
|
|
17103
17104
|
const seenItem = refs.seen.get(def);
|
|
17104
17105
|
if (refs.override) {
|
|
@@ -17153,7 +17154,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
17153
17154
|
}
|
|
17154
17155
|
return jsonSchema;
|
|
17155
17156
|
};
|
|
17156
|
-
// node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
17157
|
+
// node_modules/.bun/zod-to-json-schema@3.25.1+27912429049419a2/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
17157
17158
|
var zodToJsonSchema = (schema, options) => {
|
|
17158
17159
|
const refs = getRefs(options);
|
|
17159
17160
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -17213,7 +17214,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
17213
17214
|
}
|
|
17214
17215
|
return combined;
|
|
17215
17216
|
};
|
|
17216
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
17217
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
17217
17218
|
function mapMiniTarget(t) {
|
|
17218
17219
|
if (!t)
|
|
17219
17220
|
return "draft-7";
|
|
@@ -17255,7 +17256,7 @@ function parseWithCompat(schema, data) {
|
|
|
17255
17256
|
return result.data;
|
|
17256
17257
|
}
|
|
17257
17258
|
|
|
17258
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
17259
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
17259
17260
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
17260
17261
|
|
|
17261
17262
|
class Protocol {
|
|
@@ -18090,7 +18091,7 @@ function mergeCapabilities(base, additional) {
|
|
|
18090
18091
|
return result;
|
|
18091
18092
|
}
|
|
18092
18093
|
|
|
18093
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
18094
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
18094
18095
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
18095
18096
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
18096
18097
|
function createDefaultAjvInstance() {
|
|
@@ -18130,7 +18131,7 @@ class AjvJsonSchemaValidator {
|
|
|
18130
18131
|
}
|
|
18131
18132
|
}
|
|
18132
18133
|
|
|
18133
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
18134
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
18134
18135
|
class ExperimentalServerTasks {
|
|
18135
18136
|
constructor(_server) {
|
|
18136
18137
|
this._server = _server;
|
|
@@ -18208,7 +18209,7 @@ class ExperimentalServerTasks {
|
|
|
18208
18209
|
}
|
|
18209
18210
|
}
|
|
18210
18211
|
|
|
18211
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
18212
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
18212
18213
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
18213
18214
|
if (!requests) {
|
|
18214
18215
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -18243,7 +18244,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
18243
18244
|
}
|
|
18244
18245
|
}
|
|
18245
18246
|
|
|
18246
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
18247
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
18247
18248
|
class Server extends Protocol {
|
|
18248
18249
|
constructor(_serverInfo, options) {
|
|
18249
18250
|
super(options);
|
|
@@ -18576,7 +18577,7 @@ class Server extends Protocol {
|
|
|
18576
18577
|
}
|
|
18577
18578
|
}
|
|
18578
18579
|
|
|
18579
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
18580
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
18580
18581
|
var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
|
|
18581
18582
|
function isCompletable(schema) {
|
|
18582
18583
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
@@ -18590,7 +18591,7 @@ var McpZodTypeKind;
|
|
|
18590
18591
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
18591
18592
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
18592
18593
|
|
|
18593
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
18594
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
18594
18595
|
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
18595
18596
|
function validateToolName(name) {
|
|
18596
18597
|
const warnings = [];
|
|
@@ -18648,7 +18649,7 @@ function validateAndWarnToolName(name) {
|
|
|
18648
18649
|
return result.isValid;
|
|
18649
18650
|
}
|
|
18650
18651
|
|
|
18651
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
18652
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
18652
18653
|
class ExperimentalMcpServerTasks {
|
|
18653
18654
|
constructor(_mcpServer) {
|
|
18654
18655
|
this._mcpServer = _mcpServer;
|
|
@@ -18662,7 +18663,7 @@ class ExperimentalMcpServerTasks {
|
|
|
18662
18663
|
return mcpServerInternal._createRegisteredTool(name, config2.title, config2.description, config2.inputSchema, config2.outputSchema, config2.annotations, execution, config2._meta, handler);
|
|
18663
18664
|
}
|
|
18664
18665
|
}
|
|
18665
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
18666
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
18666
18667
|
class McpServer {
|
|
18667
18668
|
constructor(serverInfo, options) {
|
|
18668
18669
|
this._registeredResources = {};
|
|
@@ -19382,10 +19383,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
19382
19383
|
}
|
|
19383
19384
|
};
|
|
19384
19385
|
|
|
19385
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
19386
|
-
import
|
|
19386
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
19387
|
+
import process2 from "process";
|
|
19387
19388
|
|
|
19388
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
19389
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
19389
19390
|
class ReadBuffer {
|
|
19390
19391
|
append(chunk) {
|
|
19391
19392
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -19415,9 +19416,9 @@ function serializeMessage(message) {
|
|
|
19415
19416
|
`;
|
|
19416
19417
|
}
|
|
19417
19418
|
|
|
19418
|
-
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
19419
|
+
// node_modules/.bun/@modelcontextprotocol+sdk@1.27.1/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
19419
19420
|
class StdioServerTransport {
|
|
19420
|
-
constructor(_stdin =
|
|
19421
|
+
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
19421
19422
|
this._stdin = _stdin;
|
|
19422
19423
|
this._stdout = _stdout;
|
|
19423
19424
|
this._readBuffer = new ReadBuffer;
|
|
@@ -19473,6 +19474,11 @@ class StdioServerTransport {
|
|
|
19473
19474
|
}
|
|
19474
19475
|
}
|
|
19475
19476
|
|
|
19477
|
+
// src/lib/installer.ts
|
|
19478
|
+
import { execFileSync, execSync } from "child_process";
|
|
19479
|
+
import { accessSync, constants } from "fs";
|
|
19480
|
+
import { join } from "path";
|
|
19481
|
+
|
|
19476
19482
|
// src/lib/registry.ts
|
|
19477
19483
|
var MICROSERVICES = [
|
|
19478
19484
|
{
|
|
@@ -19483,9 +19489,24 @@ var MICROSERVICES = [
|
|
|
19483
19489
|
package: "@hasna/microservice-auth",
|
|
19484
19490
|
binary: "microservice-auth",
|
|
19485
19491
|
schemaPrefix: "auth",
|
|
19486
|
-
tags: [
|
|
19492
|
+
tags: [
|
|
19493
|
+
"auth",
|
|
19494
|
+
"users",
|
|
19495
|
+
"sessions",
|
|
19496
|
+
"jwt",
|
|
19497
|
+
"oauth",
|
|
19498
|
+
"2fa",
|
|
19499
|
+
"api-keys",
|
|
19500
|
+
"magic-links"
|
|
19501
|
+
],
|
|
19487
19502
|
requiredEnv: ["DATABASE_URL", "JWT_SECRET"],
|
|
19488
|
-
optionalEnv: [
|
|
19503
|
+
optionalEnv: [
|
|
19504
|
+
"GITHUB_CLIENT_ID",
|
|
19505
|
+
"GITHUB_CLIENT_SECRET",
|
|
19506
|
+
"GOOGLE_CLIENT_ID",
|
|
19507
|
+
"GOOGLE_CLIENT_SECRET",
|
|
19508
|
+
"AUTH_PORT"
|
|
19509
|
+
]
|
|
19489
19510
|
},
|
|
19490
19511
|
{
|
|
19491
19512
|
name: "teams",
|
|
@@ -19495,7 +19516,14 @@ var MICROSERVICES = [
|
|
|
19495
19516
|
package: "@hasna/microservice-teams",
|
|
19496
19517
|
binary: "microservice-teams",
|
|
19497
19518
|
schemaPrefix: "teams",
|
|
19498
|
-
tags: [
|
|
19519
|
+
tags: [
|
|
19520
|
+
"teams",
|
|
19521
|
+
"workspaces",
|
|
19522
|
+
"rbac",
|
|
19523
|
+
"invites",
|
|
19524
|
+
"permissions",
|
|
19525
|
+
"multi-tenancy"
|
|
19526
|
+
],
|
|
19499
19527
|
requiredEnv: ["DATABASE_URL"],
|
|
19500
19528
|
optionalEnv: ["TEAMS_PORT"]
|
|
19501
19529
|
},
|
|
@@ -19507,7 +19535,15 @@ var MICROSERVICES = [
|
|
|
19507
19535
|
package: "@hasna/microservice-billing",
|
|
19508
19536
|
binary: "microservice-billing",
|
|
19509
19537
|
schemaPrefix: "billing",
|
|
19510
|
-
tags: [
|
|
19538
|
+
tags: [
|
|
19539
|
+
"billing",
|
|
19540
|
+
"stripe",
|
|
19541
|
+
"subscriptions",
|
|
19542
|
+
"plans",
|
|
19543
|
+
"invoices",
|
|
19544
|
+
"usage",
|
|
19545
|
+
"webhooks"
|
|
19546
|
+
],
|
|
19511
19547
|
requiredEnv: ["DATABASE_URL", "STRIPE_SECRET_KEY", "STRIPE_WEBHOOK_SECRET"],
|
|
19512
19548
|
optionalEnv: ["BILLING_PORT"]
|
|
19513
19549
|
},
|
|
@@ -19519,9 +19555,26 @@ var MICROSERVICES = [
|
|
|
19519
19555
|
package: "@hasna/microservice-notify",
|
|
19520
19556
|
binary: "microservice-notify",
|
|
19521
19557
|
schemaPrefix: "notify",
|
|
19522
|
-
tags: [
|
|
19558
|
+
tags: [
|
|
19559
|
+
"notifications",
|
|
19560
|
+
"email",
|
|
19561
|
+
"sms",
|
|
19562
|
+
"in-app",
|
|
19563
|
+
"webhooks",
|
|
19564
|
+
"templates",
|
|
19565
|
+
"sse"
|
|
19566
|
+
],
|
|
19523
19567
|
requiredEnv: ["DATABASE_URL"],
|
|
19524
|
-
optionalEnv: [
|
|
19568
|
+
optionalEnv: [
|
|
19569
|
+
"RESEND_API_KEY",
|
|
19570
|
+
"SMTP_HOST",
|
|
19571
|
+
"SMTP_PORT",
|
|
19572
|
+
"SMTP_USER",
|
|
19573
|
+
"SMTP_PASS",
|
|
19574
|
+
"TWILIO_ACCOUNT_SID",
|
|
19575
|
+
"TWILIO_AUTH_TOKEN",
|
|
19576
|
+
"NOTIFY_PORT"
|
|
19577
|
+
]
|
|
19525
19578
|
},
|
|
19526
19579
|
{
|
|
19527
19580
|
name: "files",
|
|
@@ -19531,9 +19584,24 @@ var MICROSERVICES = [
|
|
|
19531
19584
|
package: "@hasna/microservice-files",
|
|
19532
19585
|
binary: "microservice-files",
|
|
19533
19586
|
schemaPrefix: "files",
|
|
19534
|
-
tags: [
|
|
19587
|
+
tags: [
|
|
19588
|
+
"files",
|
|
19589
|
+
"uploads",
|
|
19590
|
+
"s3",
|
|
19591
|
+
"storage",
|
|
19592
|
+
"images",
|
|
19593
|
+
"presigned-urls",
|
|
19594
|
+
"cdn"
|
|
19595
|
+
],
|
|
19535
19596
|
requiredEnv: ["DATABASE_URL"],
|
|
19536
|
-
optionalEnv: [
|
|
19597
|
+
optionalEnv: [
|
|
19598
|
+
"S3_BUCKET",
|
|
19599
|
+
"S3_REGION",
|
|
19600
|
+
"AWS_ACCESS_KEY_ID",
|
|
19601
|
+
"AWS_SECRET_ACCESS_KEY",
|
|
19602
|
+
"FILES_STORAGE",
|
|
19603
|
+
"FILES_PORT"
|
|
19604
|
+
]
|
|
19537
19605
|
},
|
|
19538
19606
|
{
|
|
19539
19607
|
name: "audit",
|
|
@@ -19555,7 +19623,13 @@ var MICROSERVICES = [
|
|
|
19555
19623
|
package: "@hasna/microservice-flags",
|
|
19556
19624
|
binary: "microservice-flags",
|
|
19557
19625
|
schemaPrefix: "flags",
|
|
19558
|
-
tags: [
|
|
19626
|
+
tags: [
|
|
19627
|
+
"feature-flags",
|
|
19628
|
+
"experiments",
|
|
19629
|
+
"rollouts",
|
|
19630
|
+
"ab-testing",
|
|
19631
|
+
"targeting"
|
|
19632
|
+
],
|
|
19559
19633
|
requiredEnv: ["DATABASE_URL"],
|
|
19560
19634
|
optionalEnv: ["FLAGS_PORT"]
|
|
19561
19635
|
},
|
|
@@ -19567,7 +19641,15 @@ var MICROSERVICES = [
|
|
|
19567
19641
|
package: "@hasna/microservice-jobs",
|
|
19568
19642
|
binary: "microservice-jobs",
|
|
19569
19643
|
schemaPrefix: "jobs",
|
|
19570
|
-
tags: [
|
|
19644
|
+
tags: [
|
|
19645
|
+
"jobs",
|
|
19646
|
+
"queues",
|
|
19647
|
+
"background",
|
|
19648
|
+
"cron",
|
|
19649
|
+
"scheduling",
|
|
19650
|
+
"workers",
|
|
19651
|
+
"retry"
|
|
19652
|
+
],
|
|
19571
19653
|
requiredEnv: ["DATABASE_URL"],
|
|
19572
19654
|
optionalEnv: ["JOBS_PORT", "JOBS_WORKER_CONCURRENCY"]
|
|
19573
19655
|
},
|
|
@@ -19579,9 +19661,23 @@ var MICROSERVICES = [
|
|
|
19579
19661
|
package: "@hasna/microservice-llm",
|
|
19580
19662
|
binary: "microservice-llm",
|
|
19581
19663
|
schemaPrefix: "llm",
|
|
19582
|
-
tags: [
|
|
19664
|
+
tags: [
|
|
19665
|
+
"llm",
|
|
19666
|
+
"openai",
|
|
19667
|
+
"anthropic",
|
|
19668
|
+
"groq",
|
|
19669
|
+
"ai",
|
|
19670
|
+
"gateway",
|
|
19671
|
+
"cost-tracking",
|
|
19672
|
+
"rate-limiting"
|
|
19673
|
+
],
|
|
19583
19674
|
requiredEnv: ["DATABASE_URL"],
|
|
19584
|
-
optionalEnv: [
|
|
19675
|
+
optionalEnv: [
|
|
19676
|
+
"OPENAI_API_KEY",
|
|
19677
|
+
"ANTHROPIC_API_KEY",
|
|
19678
|
+
"GROQ_API_KEY",
|
|
19679
|
+
"LLM_PORT"
|
|
19680
|
+
]
|
|
19585
19681
|
},
|
|
19586
19682
|
{
|
|
19587
19683
|
name: "memory",
|
|
@@ -19591,7 +19687,15 @@ var MICROSERVICES = [
|
|
|
19591
19687
|
package: "@hasna/microservice-memory",
|
|
19592
19688
|
binary: "microservice-memory",
|
|
19593
19689
|
schemaPrefix: "memory",
|
|
19594
|
-
tags: [
|
|
19690
|
+
tags: [
|
|
19691
|
+
"memory",
|
|
19692
|
+
"embeddings",
|
|
19693
|
+
"pgvector",
|
|
19694
|
+
"semantic-search",
|
|
19695
|
+
"rag",
|
|
19696
|
+
"ai-agents",
|
|
19697
|
+
"recall"
|
|
19698
|
+
],
|
|
19595
19699
|
requiredEnv: ["DATABASE_URL"],
|
|
19596
19700
|
optionalEnv: ["OPENAI_API_KEY", "MEMORY_PORT"]
|
|
19597
19701
|
},
|
|
@@ -19603,7 +19707,15 @@ var MICROSERVICES = [
|
|
|
19603
19707
|
package: "@hasna/microservice-search",
|
|
19604
19708
|
binary: "microservice-search",
|
|
19605
19709
|
schemaPrefix: "search",
|
|
19606
|
-
tags: [
|
|
19710
|
+
tags: [
|
|
19711
|
+
"search",
|
|
19712
|
+
"full-text",
|
|
19713
|
+
"semantic",
|
|
19714
|
+
"vector",
|
|
19715
|
+
"pgvector",
|
|
19716
|
+
"hybrid",
|
|
19717
|
+
"rag"
|
|
19718
|
+
],
|
|
19607
19719
|
requiredEnv: ["DATABASE_URL"],
|
|
19608
19720
|
optionalEnv: ["OPENAI_API_KEY", "SEARCH_PORT"]
|
|
19609
19721
|
},
|
|
@@ -19615,7 +19727,15 @@ var MICROSERVICES = [
|
|
|
19615
19727
|
package: "@hasna/microservice-knowledge",
|
|
19616
19728
|
binary: "microservice-knowledge",
|
|
19617
19729
|
schemaPrefix: "knowledge",
|
|
19618
|
-
tags: [
|
|
19730
|
+
tags: [
|
|
19731
|
+
"knowledge",
|
|
19732
|
+
"rag",
|
|
19733
|
+
"chunking",
|
|
19734
|
+
"embeddings",
|
|
19735
|
+
"retrieval",
|
|
19736
|
+
"pgvector",
|
|
19737
|
+
"documents"
|
|
19738
|
+
],
|
|
19619
19739
|
requiredEnv: ["DATABASE_URL"],
|
|
19620
19740
|
optionalEnv: ["OPENAI_API_KEY", "KNOWLEDGE_PORT"]
|
|
19621
19741
|
},
|
|
@@ -19639,7 +19759,14 @@ var MICROSERVICES = [
|
|
|
19639
19759
|
package: "@hasna/microservice-webhooks",
|
|
19640
19760
|
binary: "microservice-webhooks",
|
|
19641
19761
|
schemaPrefix: "webhooks",
|
|
19642
|
-
tags: [
|
|
19762
|
+
tags: [
|
|
19763
|
+
"webhooks",
|
|
19764
|
+
"outbound",
|
|
19765
|
+
"delivery",
|
|
19766
|
+
"retry",
|
|
19767
|
+
"signing",
|
|
19768
|
+
"integrations"
|
|
19769
|
+
],
|
|
19643
19770
|
requiredEnv: ["DATABASE_URL"],
|
|
19644
19771
|
optionalEnv: ["WEBHOOKS_PORT"]
|
|
19645
19772
|
},
|
|
@@ -19675,7 +19802,14 @@ var MICROSERVICES = [
|
|
|
19675
19802
|
package: "@hasna/microservice-sessions",
|
|
19676
19803
|
binary: "microservice-sessions",
|
|
19677
19804
|
schemaPrefix: "sessions",
|
|
19678
|
-
tags: [
|
|
19805
|
+
tags: [
|
|
19806
|
+
"sessions",
|
|
19807
|
+
"conversations",
|
|
19808
|
+
"chat",
|
|
19809
|
+
"messages",
|
|
19810
|
+
"context-window",
|
|
19811
|
+
"history"
|
|
19812
|
+
],
|
|
19679
19813
|
requiredEnv: ["DATABASE_URL"],
|
|
19680
19814
|
optionalEnv: ["SESSIONS_PORT"]
|
|
19681
19815
|
},
|
|
@@ -19687,22 +19821,18 @@ var MICROSERVICES = [
|
|
|
19687
19821
|
package: "@hasna/microservice-guardrails",
|
|
19688
19822
|
binary: "microservice-guardrails",
|
|
19689
19823
|
schemaPrefix: "guardrails",
|
|
19690
|
-
tags: [
|
|
19824
|
+
tags: [
|
|
19825
|
+
"guardrails",
|
|
19826
|
+
"safety",
|
|
19827
|
+
"pii",
|
|
19828
|
+
"injection",
|
|
19829
|
+
"toxicity",
|
|
19830
|
+
"moderation",
|
|
19831
|
+
"policy"
|
|
19832
|
+
],
|
|
19691
19833
|
requiredEnv: ["DATABASE_URL"],
|
|
19692
19834
|
optionalEnv: ["GUARDRAILS_PORT"]
|
|
19693
19835
|
},
|
|
19694
|
-
{
|
|
19695
|
-
name: "knowledge",
|
|
19696
|
-
displayName: "Knowledge",
|
|
19697
|
-
description: "RAG pipeline: document ingestion, chunking (fixed/paragraph/sentence/recursive), embedding via pgvector, retrieval with source attribution and scoring.",
|
|
19698
|
-
category: "AI",
|
|
19699
|
-
package: "@hasna/microservice-knowledge",
|
|
19700
|
-
binary: "microservice-knowledge",
|
|
19701
|
-
schemaPrefix: "knowledge",
|
|
19702
|
-
tags: ["knowledge", "rag", "chunking", "ingestion", "retrieval", "documents", "pgvector"],
|
|
19703
|
-
requiredEnv: ["DATABASE_URL"],
|
|
19704
|
-
optionalEnv: ["OPENAI_API_KEY", "KNOWLEDGE_PORT"]
|
|
19705
|
-
},
|
|
19706
19836
|
{
|
|
19707
19837
|
name: "traces",
|
|
19708
19838
|
displayName: "Traces",
|
|
@@ -19711,7 +19841,15 @@ var MICROSERVICES = [
|
|
|
19711
19841
|
package: "@hasna/microservice-traces",
|
|
19712
19842
|
binary: "microservice-traces",
|
|
19713
19843
|
schemaPrefix: "traces",
|
|
19714
|
-
tags: [
|
|
19844
|
+
tags: [
|
|
19845
|
+
"traces",
|
|
19846
|
+
"tracing",
|
|
19847
|
+
"spans",
|
|
19848
|
+
"observability",
|
|
19849
|
+
"latency",
|
|
19850
|
+
"debugging",
|
|
19851
|
+
"agent-ops"
|
|
19852
|
+
],
|
|
19715
19853
|
requiredEnv: ["DATABASE_URL"],
|
|
19716
19854
|
optionalEnv: ["TRACES_PORT"]
|
|
19717
19855
|
},
|
|
@@ -19723,7 +19861,15 @@ var MICROSERVICES = [
|
|
|
19723
19861
|
package: "@hasna/microservice-agents",
|
|
19724
19862
|
binary: "microservice-agents",
|
|
19725
19863
|
schemaPrefix: "agents",
|
|
19726
|
-
tags: [
|
|
19864
|
+
tags: [
|
|
19865
|
+
"agents",
|
|
19866
|
+
"registry",
|
|
19867
|
+
"orchestration",
|
|
19868
|
+
"routing",
|
|
19869
|
+
"multi-agent",
|
|
19870
|
+
"capabilities",
|
|
19871
|
+
"heartbeat"
|
|
19872
|
+
],
|
|
19727
19873
|
requiredEnv: ["DATABASE_URL"],
|
|
19728
19874
|
optionalEnv: ["AGENTS_PORT"]
|
|
19729
19875
|
},
|
|
@@ -19735,7 +19881,14 @@ var MICROSERVICES = [
|
|
|
19735
19881
|
package: "@hasna/microservice-prompts",
|
|
19736
19882
|
binary: "microservice-prompts",
|
|
19737
19883
|
schemaPrefix: "prompts",
|
|
19738
|
-
tags: [
|
|
19884
|
+
tags: [
|
|
19885
|
+
"prompts",
|
|
19886
|
+
"templates",
|
|
19887
|
+
"versioning",
|
|
19888
|
+
"ab-testing",
|
|
19889
|
+
"overrides",
|
|
19890
|
+
"rollback"
|
|
19891
|
+
],
|
|
19739
19892
|
requiredEnv: ["DATABASE_URL"],
|
|
19740
19893
|
optionalEnv: ["PROMPTS_PORT"]
|
|
19741
19894
|
}
|
|
@@ -19750,24 +19903,43 @@ function searchMicroservices(query) {
|
|
|
19750
19903
|
}
|
|
19751
19904
|
|
|
19752
19905
|
// src/lib/installer.ts
|
|
19753
|
-
|
|
19754
|
-
|
|
19906
|
+
function getBunGlobalBinDir(env = process.env) {
|
|
19907
|
+
const bunInstall = env.BUN_INSTALL?.trim();
|
|
19908
|
+
if (bunInstall) {
|
|
19909
|
+
return join(bunInstall, "bin");
|
|
19910
|
+
}
|
|
19911
|
+
const home = env.HOME?.trim();
|
|
19912
|
+
if (!home) {
|
|
19913
|
+
throw new Error("Unable to determine Bun global bin path: HOME is not set.");
|
|
19914
|
+
}
|
|
19915
|
+
return join(home, ".bun", "bin");
|
|
19916
|
+
}
|
|
19917
|
+
function resolveMicroserviceBinary(name) {
|
|
19755
19918
|
const meta = getMicroservice(name);
|
|
19756
19919
|
if (!meta)
|
|
19757
|
-
return
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19920
|
+
return null;
|
|
19921
|
+
const binDir = getBunGlobalBinDir();
|
|
19922
|
+
const accessMode = process.platform === "win32" ? constants.F_OK : constants.X_OK;
|
|
19923
|
+
const candidates = process.platform === "win32" ? [join(binDir, `${meta.binary}.cmd`), join(binDir, `${meta.binary}.exe`)] : [join(binDir, meta.binary)];
|
|
19924
|
+
for (const candidate of candidates) {
|
|
19925
|
+
try {
|
|
19926
|
+
accessSync(candidate, accessMode);
|
|
19927
|
+
return candidate;
|
|
19928
|
+
} catch {}
|
|
19763
19929
|
}
|
|
19930
|
+
return null;
|
|
19931
|
+
}
|
|
19932
|
+
function microserviceExists(name) {
|
|
19933
|
+
return resolveMicroserviceBinary(name) !== null;
|
|
19764
19934
|
}
|
|
19765
19935
|
function getMicroserviceVersion(name) {
|
|
19766
|
-
const
|
|
19767
|
-
if (!
|
|
19936
|
+
const binaryPath = resolveMicroserviceBinary(name);
|
|
19937
|
+
if (!binaryPath)
|
|
19768
19938
|
return null;
|
|
19769
19939
|
try {
|
|
19770
|
-
const out = execFileSync(
|
|
19940
|
+
const out = execFileSync(binaryPath, ["--version"], {
|
|
19941
|
+
encoding: "utf8"
|
|
19942
|
+
}).trim();
|
|
19771
19943
|
return out || null;
|
|
19772
19944
|
} catch {
|
|
19773
19945
|
return null;
|
|
@@ -19776,7 +19948,11 @@ function getMicroserviceVersion(name) {
|
|
|
19776
19948
|
function installMicroservice(name, options = {}) {
|
|
19777
19949
|
const meta = getMicroservice(name);
|
|
19778
19950
|
if (!meta) {
|
|
19779
|
-
return {
|
|
19951
|
+
return {
|
|
19952
|
+
microservice: name,
|
|
19953
|
+
success: false,
|
|
19954
|
+
error: `Unknown microservice '${name}'`
|
|
19955
|
+
};
|
|
19780
19956
|
}
|
|
19781
19957
|
if (microserviceExists(name) && !options.force) {
|
|
19782
19958
|
const version2 = getMicroserviceVersion(name);
|
|
@@ -19814,47 +19990,15 @@ function getMicroserviceStatus(name) {
|
|
|
19814
19990
|
};
|
|
19815
19991
|
}
|
|
19816
19992
|
|
|
19817
|
-
// src/lib/runner.ts
|
|
19818
|
-
import { execFile } from "child_process";
|
|
19819
|
-
async function runMicroserviceCommand(name, args, timeout = 30000) {
|
|
19820
|
-
const meta = getMicroservice(name);
|
|
19821
|
-
if (!meta) {
|
|
19822
|
-
return { success: false, stdout: "", stderr: `Unknown microservice '${name}'`, exitCode: 1 };
|
|
19823
|
-
}
|
|
19824
|
-
if (!microserviceExists(name)) {
|
|
19825
|
-
return {
|
|
19826
|
-
success: false,
|
|
19827
|
-
stdout: "",
|
|
19828
|
-
stderr: `microservice-${name} is not installed. Run: bun install -g ${meta.package}`,
|
|
19829
|
-
exitCode: 1
|
|
19830
|
-
};
|
|
19831
|
-
}
|
|
19832
|
-
return new Promise((resolve) => {
|
|
19833
|
-
execFile(meta.binary, args, { timeout, maxBuffer: 10 * 1024 * 1024 }, (error2, stdout, stderr) => {
|
|
19834
|
-
if (error2 && "killed" in error2 && error2.killed) {
|
|
19835
|
-
resolve({ success: false, stdout: "", stderr: "Command timed out", exitCode: 1 });
|
|
19836
|
-
return;
|
|
19837
|
-
}
|
|
19838
|
-
const exitCode = error2?.code ? typeof error2.code === "number" ? error2.code : 1 : 0;
|
|
19839
|
-
resolve({
|
|
19840
|
-
success: exitCode === 0,
|
|
19841
|
-
stdout: (stdout || "").trim(),
|
|
19842
|
-
stderr: (stderr || "").trim(),
|
|
19843
|
-
exitCode
|
|
19844
|
-
});
|
|
19845
|
-
});
|
|
19846
|
-
});
|
|
19847
|
-
}
|
|
19848
|
-
|
|
19849
19993
|
// src/lib/package-info.ts
|
|
19850
19994
|
import { existsSync, readFileSync } from "fs";
|
|
19851
|
-
import { dirname, join, resolve } from "path";
|
|
19995
|
+
import { dirname, join as join2, resolve } from "path";
|
|
19852
19996
|
import { fileURLToPath } from "url";
|
|
19853
19997
|
var DEFAULT_VERSION = "0.0.1";
|
|
19854
19998
|
function findNearestPackageJson(startDir) {
|
|
19855
19999
|
let dir = resolve(startDir);
|
|
19856
20000
|
while (true) {
|
|
19857
|
-
const candidate =
|
|
20001
|
+
const candidate = join2(dir, "package.json");
|
|
19858
20002
|
if (existsSync(candidate)) {
|
|
19859
20003
|
return candidate;
|
|
19860
20004
|
}
|
|
@@ -19878,6 +20022,57 @@ function getPackageVersion(startDir) {
|
|
|
19878
20022
|
return readPackageVersion(packageJsonPath);
|
|
19879
20023
|
}
|
|
19880
20024
|
|
|
20025
|
+
// src/lib/runner.ts
|
|
20026
|
+
import { execFile } from "child_process";
|
|
20027
|
+
async function runMicroserviceCommand(name, args, timeout = 30000) {
|
|
20028
|
+
const meta = getMicroservice(name);
|
|
20029
|
+
if (!meta) {
|
|
20030
|
+
return {
|
|
20031
|
+
success: false,
|
|
20032
|
+
stdout: "",
|
|
20033
|
+
stderr: `Unknown microservice '${name}'`,
|
|
20034
|
+
exitCode: 1
|
|
20035
|
+
};
|
|
20036
|
+
}
|
|
20037
|
+
if (!microserviceExists(name)) {
|
|
20038
|
+
return {
|
|
20039
|
+
success: false,
|
|
20040
|
+
stdout: "",
|
|
20041
|
+
stderr: `${meta.binary} is not installed. Run: bun install -g ${meta.package}`,
|
|
20042
|
+
exitCode: 1
|
|
20043
|
+
};
|
|
20044
|
+
}
|
|
20045
|
+
const binaryPath = resolveMicroserviceBinary(name);
|
|
20046
|
+
if (!binaryPath) {
|
|
20047
|
+
return {
|
|
20048
|
+
success: false,
|
|
20049
|
+
stdout: "",
|
|
20050
|
+
stderr: `Could not resolve global binary for ${meta.binary}.`,
|
|
20051
|
+
exitCode: 1
|
|
20052
|
+
};
|
|
20053
|
+
}
|
|
20054
|
+
return new Promise((resolve2) => {
|
|
20055
|
+
execFile(binaryPath, args, { timeout, maxBuffer: 10 * 1024 * 1024 }, (error2, stdout, stderr) => {
|
|
20056
|
+
if (error2 && "killed" in error2 && error2.killed) {
|
|
20057
|
+
resolve2({
|
|
20058
|
+
success: false,
|
|
20059
|
+
stdout: "",
|
|
20060
|
+
stderr: "Command timed out",
|
|
20061
|
+
exitCode: 1
|
|
20062
|
+
});
|
|
20063
|
+
return;
|
|
20064
|
+
}
|
|
20065
|
+
const exitCode = error2?.code ? typeof error2.code === "number" ? error2.code : 1 : 0;
|
|
20066
|
+
resolve2({
|
|
20067
|
+
success: exitCode === 0,
|
|
20068
|
+
stdout: (stdout || "").trim(),
|
|
20069
|
+
stderr: (stderr || "").trim(),
|
|
20070
|
+
exitCode
|
|
20071
|
+
});
|
|
20072
|
+
});
|
|
20073
|
+
});
|
|
20074
|
+
}
|
|
20075
|
+
|
|
19881
20076
|
// src/mcp/index.ts
|
|
19882
20077
|
var server = new McpServer({
|
|
19883
20078
|
name: "microservices",
|
|
@@ -19885,24 +20080,26 @@ var server = new McpServer({
|
|
|
19885
20080
|
});
|
|
19886
20081
|
server.registerTool("list_microservices", {
|
|
19887
20082
|
title: "List Microservices",
|
|
19888
|
-
description: "List all available production microservices (auth, teams, billing,
|
|
20083
|
+
description: "List all 21 available production microservices (auth, teams, billing, llm, agents, memory, etc).",
|
|
19889
20084
|
inputSchema: { installed_only: exports_external.boolean().optional() }
|
|
19890
20085
|
}, async ({ installed_only }) => {
|
|
19891
20086
|
const services = installed_only ? MICROSERVICES.filter((m) => microserviceExists(m.name)) : MICROSERVICES;
|
|
19892
20087
|
return {
|
|
19893
|
-
content: [
|
|
19894
|
-
|
|
19895
|
-
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
|
|
19899
|
-
|
|
19900
|
-
|
|
19901
|
-
|
|
19902
|
-
|
|
19903
|
-
|
|
19904
|
-
|
|
19905
|
-
|
|
20088
|
+
content: [
|
|
20089
|
+
{
|
|
20090
|
+
type: "text",
|
|
20091
|
+
text: JSON.stringify(services.map((m) => ({
|
|
20092
|
+
name: m.name,
|
|
20093
|
+
package: m.package,
|
|
20094
|
+
binary: m.binary,
|
|
20095
|
+
category: m.category,
|
|
20096
|
+
description: m.description,
|
|
20097
|
+
schemaPrefix: m.schemaPrefix,
|
|
20098
|
+
installed: microserviceExists(m.name),
|
|
20099
|
+
requiredEnv: m.requiredEnv
|
|
20100
|
+
})), null, 2)
|
|
20101
|
+
}
|
|
20102
|
+
]
|
|
19906
20103
|
};
|
|
19907
20104
|
});
|
|
19908
20105
|
server.registerTool("search_microservices", {
|
|
@@ -19912,16 +20109,18 @@ server.registerTool("search_microservices", {
|
|
|
19912
20109
|
}, async ({ query }) => {
|
|
19913
20110
|
const results = searchMicroservices(query);
|
|
19914
20111
|
return {
|
|
19915
|
-
content: [
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
20112
|
+
content: [
|
|
20113
|
+
{
|
|
20114
|
+
type: "text",
|
|
20115
|
+
text: JSON.stringify(results.map((m) => ({
|
|
20116
|
+
name: m.name,
|
|
20117
|
+
package: m.package,
|
|
20118
|
+
description: m.description,
|
|
20119
|
+
category: m.category,
|
|
20120
|
+
tags: m.tags
|
|
20121
|
+
})), null, 2)
|
|
20122
|
+
}
|
|
20123
|
+
]
|
|
19925
20124
|
};
|
|
19926
20125
|
});
|
|
19927
20126
|
server.registerTool("install_microservice", {
|
|
@@ -19931,10 +20130,12 @@ server.registerTool("install_microservice", {
|
|
|
19931
20130
|
}, async ({ name, force }) => {
|
|
19932
20131
|
const result = installMicroservice(name, { force });
|
|
19933
20132
|
return {
|
|
19934
|
-
content: [
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
20133
|
+
content: [
|
|
20134
|
+
{
|
|
20135
|
+
type: "text",
|
|
20136
|
+
text: JSON.stringify(result, null, 2)
|
|
20137
|
+
}
|
|
20138
|
+
]
|
|
19938
20139
|
};
|
|
19939
20140
|
});
|
|
19940
20141
|
server.registerTool("microservice_status", {
|
|
@@ -19944,7 +20145,12 @@ server.registerTool("microservice_status", {
|
|
|
19944
20145
|
}, async ({ name }) => {
|
|
19945
20146
|
if (name) {
|
|
19946
20147
|
return {
|
|
19947
|
-
content: [
|
|
20148
|
+
content: [
|
|
20149
|
+
{
|
|
20150
|
+
type: "text",
|
|
20151
|
+
text: JSON.stringify(getMicroserviceStatus(name), null, 2)
|
|
20152
|
+
}
|
|
20153
|
+
]
|
|
19948
20154
|
};
|
|
19949
20155
|
}
|
|
19950
20156
|
const statuses = MICROSERVICES.map((m) => getMicroserviceStatus(m.name));
|
|
@@ -19962,17 +20168,279 @@ server.registerTool("run_microservice_command", {
|
|
|
19962
20168
|
}, async ({ name, args }) => {
|
|
19963
20169
|
const result = await runMicroserviceCommand(name, args);
|
|
19964
20170
|
return {
|
|
19965
|
-
content: [
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19970
|
-
|
|
19971
|
-
|
|
19972
|
-
|
|
19973
|
-
|
|
20171
|
+
content: [
|
|
20172
|
+
{
|
|
20173
|
+
type: "text",
|
|
20174
|
+
text: JSON.stringify({
|
|
20175
|
+
success: result.success,
|
|
20176
|
+
exitCode: result.exitCode,
|
|
20177
|
+
stdout: result.stdout,
|
|
20178
|
+
stderr: result.stderr
|
|
20179
|
+
}, null, 2)
|
|
20180
|
+
}
|
|
20181
|
+
]
|
|
20182
|
+
};
|
|
20183
|
+
});
|
|
20184
|
+
server.registerTool("check_env", {
|
|
20185
|
+
title: "Check Environment Variables",
|
|
20186
|
+
description: "Verify if all required and optional environment variables are set for installed microservices.",
|
|
20187
|
+
inputSchema: {}
|
|
20188
|
+
}, async () => {
|
|
20189
|
+
const installed = MICROSERVICES.filter((m) => microserviceExists(m.name));
|
|
20190
|
+
if (installed.length === 0) {
|
|
20191
|
+
return {
|
|
20192
|
+
content: [
|
|
20193
|
+
{ type: "text", text: "No microservices installed to check." }
|
|
20194
|
+
]
|
|
20195
|
+
};
|
|
20196
|
+
}
|
|
20197
|
+
const report = installed.map((m) => {
|
|
20198
|
+
const missingRequired = m.requiredEnv.filter((env) => !process.env[env]);
|
|
20199
|
+
const missingOptional = (m.optionalEnv ?? []).filter((env) => !process.env[env]);
|
|
20200
|
+
return {
|
|
20201
|
+
name: m.name,
|
|
20202
|
+
ok: missingRequired.length === 0,
|
|
20203
|
+
missing_required: missingRequired,
|
|
20204
|
+
missing_optional: missingOptional
|
|
20205
|
+
};
|
|
20206
|
+
});
|
|
20207
|
+
return {
|
|
20208
|
+
content: [
|
|
20209
|
+
{
|
|
20210
|
+
type: "text",
|
|
20211
|
+
text: JSON.stringify({
|
|
20212
|
+
summary: {
|
|
20213
|
+
installed: installed.length,
|
|
20214
|
+
total_missing_required: report.reduce((acc, r) => acc + r.missing_required.length, 0),
|
|
20215
|
+
all_ok: report.every((r) => r.ok)
|
|
20216
|
+
},
|
|
20217
|
+
services: report
|
|
20218
|
+
}, null, 2)
|
|
20219
|
+
}
|
|
20220
|
+
]
|
|
19974
20221
|
};
|
|
19975
20222
|
});
|
|
20223
|
+
server.registerTool("scaffold_microservice", {
|
|
20224
|
+
title: "Scaffold Microservice",
|
|
20225
|
+
description: "Scaffold a new microservice from the _template directory.",
|
|
20226
|
+
inputSchema: {
|
|
20227
|
+
name: exports_external.string().describe("The name of the new microservice (lowercase, dashes only)")
|
|
20228
|
+
}
|
|
20229
|
+
}, async ({ name }) => {
|
|
20230
|
+
if (!/^[a-z0-9-]+$/.test(name)) {
|
|
20231
|
+
return {
|
|
20232
|
+
content: [
|
|
20233
|
+
{
|
|
20234
|
+
type: "text",
|
|
20235
|
+
text: JSON.stringify({
|
|
20236
|
+
success: false,
|
|
20237
|
+
error: "Name can only contain lowercase letters, numbers, and dashes."
|
|
20238
|
+
}, null, 2)
|
|
20239
|
+
}
|
|
20240
|
+
]
|
|
20241
|
+
};
|
|
20242
|
+
}
|
|
20243
|
+
try {
|
|
20244
|
+
const fs = await import("fs");
|
|
20245
|
+
const path = await import("path");
|
|
20246
|
+
const cwd = process.cwd();
|
|
20247
|
+
const templateDir = path.join(cwd, "microservices", "_template");
|
|
20248
|
+
const targetDir = path.join(cwd, "microservices", `microservice-${name}`);
|
|
20249
|
+
if (!fs.existsSync(templateDir)) {
|
|
20250
|
+
return {
|
|
20251
|
+
content: [
|
|
20252
|
+
{
|
|
20253
|
+
type: "text",
|
|
20254
|
+
text: JSON.stringify({
|
|
20255
|
+
success: false,
|
|
20256
|
+
error: `Template directory not found at ${templateDir}.`
|
|
20257
|
+
}, null, 2)
|
|
20258
|
+
}
|
|
20259
|
+
]
|
|
20260
|
+
};
|
|
20261
|
+
}
|
|
20262
|
+
if (fs.existsSync(targetDir)) {
|
|
20263
|
+
return {
|
|
20264
|
+
content: [
|
|
20265
|
+
{
|
|
20266
|
+
type: "text",
|
|
20267
|
+
text: JSON.stringify({
|
|
20268
|
+
success: false,
|
|
20269
|
+
error: `Target directory already exists at ${targetDir}`
|
|
20270
|
+
}, null, 2)
|
|
20271
|
+
}
|
|
20272
|
+
]
|
|
20273
|
+
};
|
|
20274
|
+
}
|
|
20275
|
+
fs.cpSync(templateDir, targetDir, { recursive: true });
|
|
20276
|
+
const replaceInFile = (filePath) => {
|
|
20277
|
+
const content = fs.readFileSync(filePath, "utf-8");
|
|
20278
|
+
let updated = content.replace(/__NAME__/g, name.toUpperCase().replace(/-/g, "_"));
|
|
20279
|
+
updated = updated.replace(/__Name__/g, name.charAt(0).toUpperCase() + name.slice(1));
|
|
20280
|
+
updated = updated.replace(/__name__/g, name);
|
|
20281
|
+
fs.writeFileSync(filePath, updated, "utf-8");
|
|
20282
|
+
};
|
|
20283
|
+
const walkAndReplace = (dir) => {
|
|
20284
|
+
const files = fs.readdirSync(dir);
|
|
20285
|
+
for (const file of files) {
|
|
20286
|
+
const filePath = path.join(dir, file);
|
|
20287
|
+
if (fs.statSync(filePath).isDirectory()) {
|
|
20288
|
+
walkAndReplace(filePath);
|
|
20289
|
+
} else {
|
|
20290
|
+
replaceInFile(filePath);
|
|
20291
|
+
}
|
|
20292
|
+
}
|
|
20293
|
+
};
|
|
20294
|
+
walkAndReplace(targetDir);
|
|
20295
|
+
return {
|
|
20296
|
+
content: [
|
|
20297
|
+
{
|
|
20298
|
+
type: "text",
|
|
20299
|
+
text: JSON.stringify({
|
|
20300
|
+
success: true,
|
|
20301
|
+
message: `Created microservices/microservice-${name}`
|
|
20302
|
+
}, null, 2)
|
|
20303
|
+
}
|
|
20304
|
+
]
|
|
20305
|
+
};
|
|
20306
|
+
} catch (err) {
|
|
20307
|
+
return {
|
|
20308
|
+
content: [
|
|
20309
|
+
{
|
|
20310
|
+
type: "text",
|
|
20311
|
+
text: JSON.stringify({ success: false, error: String(err) }, null, 2)
|
|
20312
|
+
}
|
|
20313
|
+
]
|
|
20314
|
+
};
|
|
20315
|
+
}
|
|
20316
|
+
});
|
|
20317
|
+
server.registerTool("init_all_microservices", {
|
|
20318
|
+
title: "Init All Microservices",
|
|
20319
|
+
description: "Run migrations and confirm setup for all installed microservices.",
|
|
20320
|
+
inputSchema: { db: exports_external.string().describe("PostgreSQL connection URL") }
|
|
20321
|
+
}, async ({ db }) => {
|
|
20322
|
+
process.env.DATABASE_URL = db;
|
|
20323
|
+
const installed = MICROSERVICES.filter((m) => microserviceExists(m.name));
|
|
20324
|
+
if (installed.length === 0) {
|
|
20325
|
+
return {
|
|
20326
|
+
content: [
|
|
20327
|
+
{ type: "text", text: "No microservices installed to init." }
|
|
20328
|
+
]
|
|
20329
|
+
};
|
|
20330
|
+
}
|
|
20331
|
+
const results = [];
|
|
20332
|
+
let hasErrors = false;
|
|
20333
|
+
for (const m of installed) {
|
|
20334
|
+
const res = await runMicroserviceCommand(m.name, ["init", "--db", db]);
|
|
20335
|
+
results.push({
|
|
20336
|
+
name: m.name,
|
|
20337
|
+
success: res.success,
|
|
20338
|
+
output: res.stdout || res.stderr
|
|
20339
|
+
});
|
|
20340
|
+
if (!res.success)
|
|
20341
|
+
hasErrors = true;
|
|
20342
|
+
}
|
|
20343
|
+
return {
|
|
20344
|
+
content: [
|
|
20345
|
+
{
|
|
20346
|
+
type: "text",
|
|
20347
|
+
text: JSON.stringify({ success: !hasErrors, initialized: installed.length, results }, null, 2)
|
|
20348
|
+
}
|
|
20349
|
+
]
|
|
20350
|
+
};
|
|
20351
|
+
});
|
|
20352
|
+
server.registerTool("migrate_all_microservices", {
|
|
20353
|
+
title: "Migrate All Microservices",
|
|
20354
|
+
description: "Run database migrations for all installed microservices.",
|
|
20355
|
+
inputSchema: {
|
|
20356
|
+
db: exports_external.string().optional().describe("PostgreSQL connection URL (overrides DATABASE_URL)")
|
|
20357
|
+
}
|
|
20358
|
+
}, async ({ db }) => {
|
|
20359
|
+
if (db)
|
|
20360
|
+
process.env.DATABASE_URL = db;
|
|
20361
|
+
const installed = MICROSERVICES.filter((m) => microserviceExists(m.name));
|
|
20362
|
+
if (installed.length === 0) {
|
|
20363
|
+
return {
|
|
20364
|
+
content: [
|
|
20365
|
+
{ type: "text", text: "No microservices installed to migrate." }
|
|
20366
|
+
]
|
|
20367
|
+
};
|
|
20368
|
+
}
|
|
20369
|
+
const results = [];
|
|
20370
|
+
let hasErrors = false;
|
|
20371
|
+
for (const m of installed) {
|
|
20372
|
+
const res = await runMicroserviceCommand(m.name, ["migrate"]);
|
|
20373
|
+
results.push({
|
|
20374
|
+
name: m.name,
|
|
20375
|
+
success: res.success,
|
|
20376
|
+
output: res.stdout || res.stderr
|
|
20377
|
+
});
|
|
20378
|
+
if (!res.success)
|
|
20379
|
+
hasErrors = true;
|
|
20380
|
+
}
|
|
20381
|
+
return {
|
|
20382
|
+
content: [
|
|
20383
|
+
{
|
|
20384
|
+
type: "text",
|
|
20385
|
+
text: JSON.stringify({ success: !hasErrors, migrated: installed.length, results }, null, 2)
|
|
20386
|
+
}
|
|
20387
|
+
]
|
|
20388
|
+
};
|
|
20389
|
+
});
|
|
20390
|
+
server.registerTool("serve_all_microservices", {
|
|
20391
|
+
title: "Serve All Microservices",
|
|
20392
|
+
description: "Start HTTP servers for all installed microservices. NOTE: This will run them in the background. It is highly recommended to run this directly in your terminal if you need to view live logs.",
|
|
20393
|
+
inputSchema: {
|
|
20394
|
+
db: exports_external.string().optional().describe("PostgreSQL connection URL (overrides DATABASE_URL)")
|
|
20395
|
+
}
|
|
20396
|
+
}, async ({ db }) => {
|
|
20397
|
+
if (db)
|
|
20398
|
+
process.env.DATABASE_URL = db;
|
|
20399
|
+
const installed = MICROSERVICES.filter((m) => microserviceExists(m.name));
|
|
20400
|
+
if (installed.length === 0) {
|
|
20401
|
+
return {
|
|
20402
|
+
content: [
|
|
20403
|
+
{ type: "text", text: "No microservices installed to serve." }
|
|
20404
|
+
]
|
|
20405
|
+
};
|
|
20406
|
+
}
|
|
20407
|
+
try {
|
|
20408
|
+
const { spawn } = await import("child_process");
|
|
20409
|
+
const servicesStarted = [];
|
|
20410
|
+
for (let i = 0;i < installed.length; i++) {
|
|
20411
|
+
const m = installed[i];
|
|
20412
|
+
const proc = spawn(m.binary, ["serve"], {
|
|
20413
|
+
env: process.env,
|
|
20414
|
+
stdio: "ignore",
|
|
20415
|
+
detached: true
|
|
20416
|
+
});
|
|
20417
|
+
proc.unref();
|
|
20418
|
+
servicesStarted.push(m.name);
|
|
20419
|
+
}
|
|
20420
|
+
return {
|
|
20421
|
+
content: [
|
|
20422
|
+
{
|
|
20423
|
+
type: "text",
|
|
20424
|
+
text: JSON.stringify({
|
|
20425
|
+
success: true,
|
|
20426
|
+
started: servicesStarted.length,
|
|
20427
|
+
services: servicesStarted,
|
|
20428
|
+
note: "Processes have been detached and are running in the background."
|
|
20429
|
+
}, null, 2)
|
|
20430
|
+
}
|
|
20431
|
+
]
|
|
20432
|
+
};
|
|
20433
|
+
} catch (err) {
|
|
20434
|
+
return {
|
|
20435
|
+
content: [
|
|
20436
|
+
{
|
|
20437
|
+
type: "text",
|
|
20438
|
+
text: JSON.stringify({ success: false, error: String(err) }, null, 2)
|
|
20439
|
+
}
|
|
20440
|
+
]
|
|
20441
|
+
};
|
|
20442
|
+
}
|
|
20443
|
+
});
|
|
19976
20444
|
server.registerTool("remove_microservice", {
|
|
19977
20445
|
title: "Remove Microservice",
|
|
19978
20446
|
description: "Uninstall a microservice global package.",
|
|
@@ -19980,7 +20448,9 @@ server.registerTool("remove_microservice", {
|
|
|
19980
20448
|
}, async ({ name }) => {
|
|
19981
20449
|
const ok = removeMicroservice(name);
|
|
19982
20450
|
return {
|
|
19983
|
-
content: [
|
|
20451
|
+
content: [
|
|
20452
|
+
{ type: "text", text: JSON.stringify({ removed: ok, name }, null, 2) }
|
|
20453
|
+
]
|
|
19984
20454
|
};
|
|
19985
20455
|
});
|
|
19986
20456
|
server.registerTool("get_microservice_info", {
|
|
@@ -19990,12 +20460,16 @@ server.registerTool("get_microservice_info", {
|
|
|
19990
20460
|
}, async ({ name }) => {
|
|
19991
20461
|
const m = getMicroservice(name);
|
|
19992
20462
|
if (!m)
|
|
19993
|
-
return {
|
|
20463
|
+
return {
|
|
20464
|
+
content: [{ type: "text", text: `Unknown microservice: ${name}` }]
|
|
20465
|
+
};
|
|
19994
20466
|
return {
|
|
19995
|
-
content: [
|
|
19996
|
-
|
|
19997
|
-
|
|
19998
|
-
|
|
20467
|
+
content: [
|
|
20468
|
+
{
|
|
20469
|
+
type: "text",
|
|
20470
|
+
text: JSON.stringify({ ...m, installed: microserviceExists(name) }, null, 2)
|
|
20471
|
+
}
|
|
20472
|
+
]
|
|
19999
20473
|
};
|
|
20000
20474
|
});
|
|
20001
20475
|
async function main() {
|