@enactprotocol/mcp-server 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +361 -135
- package/dist/index.js.bak +361 -135
- package/package.json +2 -2
package/dist/index.js.bak
CHANGED
|
@@ -28,7 +28,7 @@ var __export = (target, all) => {
|
|
|
28
28
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
29
29
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// node_modules/uri-js/dist/es5/uri.all.js
|
|
32
32
|
var require_uri_all = __commonJS((exports, module) => {
|
|
33
33
|
(function(global2, factory) {
|
|
34
34
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global2.URI = global2.URI || {});
|
|
@@ -1032,7 +1032,7 @@ var require_uri_all = __commonJS((exports, module) => {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
});
|
|
1034
1034
|
|
|
1035
|
-
//
|
|
1035
|
+
// node_modules/fast-deep-equal/index.js
|
|
1036
1036
|
var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
1037
1037
|
module.exports = function equal(a, b) {
|
|
1038
1038
|
if (a === b)
|
|
@@ -1074,7 +1074,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
|
|
|
1074
1074
|
};
|
|
1075
1075
|
});
|
|
1076
1076
|
|
|
1077
|
-
//
|
|
1077
|
+
// node_modules/ajv/lib/compile/ucs2length.js
|
|
1078
1078
|
var require_ucs2length = __commonJS((exports, module) => {
|
|
1079
1079
|
module.exports = function ucs2length(str) {
|
|
1080
1080
|
var length = 0, len = str.length, pos = 0, value;
|
|
@@ -1091,7 +1091,7 @@ var require_ucs2length = __commonJS((exports, module) => {
|
|
|
1091
1091
|
};
|
|
1092
1092
|
});
|
|
1093
1093
|
|
|
1094
|
-
//
|
|
1094
|
+
// node_modules/ajv/lib/compile/util.js
|
|
1095
1095
|
var require_util = __commonJS((exports, module) => {
|
|
1096
1096
|
module.exports = {
|
|
1097
1097
|
copy,
|
|
@@ -1294,7 +1294,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
1296
1296
|
|
|
1297
|
-
//
|
|
1297
|
+
// node_modules/ajv/lib/compile/schema_obj.js
|
|
1298
1298
|
var require_schema_obj = __commonJS((exports, module) => {
|
|
1299
1299
|
var util3 = require_util();
|
|
1300
1300
|
module.exports = SchemaObject;
|
|
@@ -1303,7 +1303,7 @@ var require_schema_obj = __commonJS((exports, module) => {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
});
|
|
1305
1305
|
|
|
1306
|
-
//
|
|
1306
|
+
// node_modules/json-schema-traverse/index.js
|
|
1307
1307
|
var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
1308
1308
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
1309
1309
|
if (typeof opts == "function") {
|
|
@@ -1382,7 +1382,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
});
|
|
1384
1384
|
|
|
1385
|
-
//
|
|
1385
|
+
// node_modules/ajv/lib/compile/resolve.js
|
|
1386
1386
|
var require_resolve = __commonJS((exports, module) => {
|
|
1387
1387
|
var URI = require_uri_all();
|
|
1388
1388
|
var equal = require_fast_deep_equal();
|
|
@@ -1623,7 +1623,7 @@ var require_resolve = __commonJS((exports, module) => {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
});
|
|
1625
1625
|
|
|
1626
|
-
//
|
|
1626
|
+
// node_modules/ajv/lib/compile/error_classes.js
|
|
1627
1627
|
var require_error_classes = __commonJS((exports, module) => {
|
|
1628
1628
|
var resolve = require_resolve();
|
|
1629
1629
|
module.exports = {
|
|
@@ -1650,7 +1650,7 @@ var require_error_classes = __commonJS((exports, module) => {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
});
|
|
1652
1652
|
|
|
1653
|
-
//
|
|
1653
|
+
// node_modules/fast-json-stable-stringify/index.js
|
|
1654
1654
|
var require_fast_json_stable_stringify = __commonJS((exports, module) => {
|
|
1655
1655
|
module.exports = function(data, opts) {
|
|
1656
1656
|
if (!opts)
|
|
@@ -1713,7 +1713,7 @@ var require_fast_json_stable_stringify = __commonJS((exports, module) => {
|
|
|
1713
1713
|
};
|
|
1714
1714
|
});
|
|
1715
1715
|
|
|
1716
|
-
//
|
|
1716
|
+
// node_modules/ajv/lib/dotjs/validate.js
|
|
1717
1717
|
var require_validate = __commonJS((exports, module) => {
|
|
1718
1718
|
module.exports = function generate_validate(it, $keyword, $ruleType) {
|
|
1719
1719
|
var out = "";
|
|
@@ -2181,7 +2181,7 @@ var require_validate = __commonJS((exports, module) => {
|
|
|
2181
2181
|
};
|
|
2182
2182
|
});
|
|
2183
2183
|
|
|
2184
|
-
//
|
|
2184
|
+
// node_modules/ajv/lib/compile/index.js
|
|
2185
2185
|
var require_compile = __commonJS((exports, module) => {
|
|
2186
2186
|
var resolve = require_resolve();
|
|
2187
2187
|
var util3 = require_util();
|
|
@@ -2447,7 +2447,7 @@ var require_compile = __commonJS((exports, module) => {
|
|
|
2447
2447
|
}
|
|
2448
2448
|
});
|
|
2449
2449
|
|
|
2450
|
-
//
|
|
2450
|
+
// node_modules/ajv/lib/cache.js
|
|
2451
2451
|
var require_cache = __commonJS((exports, module) => {
|
|
2452
2452
|
var Cache = module.exports = function Cache() {
|
|
2453
2453
|
this._cache = {};
|
|
@@ -2466,7 +2466,7 @@ var require_cache = __commonJS((exports, module) => {
|
|
|
2466
2466
|
};
|
|
2467
2467
|
});
|
|
2468
2468
|
|
|
2469
|
-
//
|
|
2469
|
+
// node_modules/ajv/lib/compile/formats.js
|
|
2470
2470
|
var require_formats = __commonJS((exports, module) => {
|
|
2471
2471
|
var util3 = require_util();
|
|
2472
2472
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
@@ -2566,7 +2566,7 @@ var require_formats = __commonJS((exports, module) => {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
});
|
|
2568
2568
|
|
|
2569
|
-
//
|
|
2569
|
+
// node_modules/ajv/lib/dotjs/ref.js
|
|
2570
2570
|
var require_ref = __commonJS((exports, module) => {
|
|
2571
2571
|
module.exports = function generate_ref(it, $keyword, $ruleType) {
|
|
2572
2572
|
var out = " ";
|
|
@@ -2692,7 +2692,7 @@ var require_ref = __commonJS((exports, module) => {
|
|
|
2692
2692
|
};
|
|
2693
2693
|
});
|
|
2694
2694
|
|
|
2695
|
-
//
|
|
2695
|
+
// node_modules/ajv/lib/dotjs/allOf.js
|
|
2696
2696
|
var require_allOf = __commonJS((exports, module) => {
|
|
2697
2697
|
module.exports = function generate_allOf(it, $keyword, $ruleType) {
|
|
2698
2698
|
var out = " ";
|
|
@@ -2735,7 +2735,7 @@ var require_allOf = __commonJS((exports, module) => {
|
|
|
2735
2735
|
};
|
|
2736
2736
|
});
|
|
2737
2737
|
|
|
2738
|
-
//
|
|
2738
|
+
// node_modules/ajv/lib/dotjs/anyOf.js
|
|
2739
2739
|
var require_anyOf = __commonJS((exports, module) => {
|
|
2740
2740
|
module.exports = function generate_anyOf(it, $keyword, $ruleType) {
|
|
2741
2741
|
var out = " ";
|
|
@@ -2809,7 +2809,7 @@ var require_anyOf = __commonJS((exports, module) => {
|
|
|
2809
2809
|
};
|
|
2810
2810
|
});
|
|
2811
2811
|
|
|
2812
|
-
//
|
|
2812
|
+
// node_modules/ajv/lib/dotjs/comment.js
|
|
2813
2813
|
var require_comment = __commonJS((exports, module) => {
|
|
2814
2814
|
module.exports = function generate_comment(it, $keyword, $ruleType) {
|
|
2815
2815
|
var out = " ";
|
|
@@ -2826,7 +2826,7 @@ var require_comment = __commonJS((exports, module) => {
|
|
|
2826
2826
|
};
|
|
2827
2827
|
});
|
|
2828
2828
|
|
|
2829
|
-
//
|
|
2829
|
+
// node_modules/ajv/lib/dotjs/const.js
|
|
2830
2830
|
var require_const = __commonJS((exports, module) => {
|
|
2831
2831
|
module.exports = function generate_const(it, $keyword, $ruleType) {
|
|
2832
2832
|
var out = " ";
|
|
@@ -2883,7 +2883,7 @@ var require_const = __commonJS((exports, module) => {
|
|
|
2883
2883
|
};
|
|
2884
2884
|
});
|
|
2885
2885
|
|
|
2886
|
-
//
|
|
2886
|
+
// node_modules/ajv/lib/dotjs/contains.js
|
|
2887
2887
|
var require_contains = __commonJS((exports, module) => {
|
|
2888
2888
|
module.exports = function generate_contains(it, $keyword, $ruleType) {
|
|
2889
2889
|
var out = " ";
|
|
@@ -2962,7 +2962,7 @@ var require_contains = __commonJS((exports, module) => {
|
|
|
2962
2962
|
};
|
|
2963
2963
|
});
|
|
2964
2964
|
|
|
2965
|
-
//
|
|
2965
|
+
// node_modules/ajv/lib/dotjs/dependencies.js
|
|
2966
2966
|
var require_dependencies = __commonJS((exports, module) => {
|
|
2967
2967
|
module.exports = function generate_dependencies(it, $keyword, $ruleType) {
|
|
2968
2968
|
var out = " ";
|
|
@@ -3125,7 +3125,7 @@ var require_dependencies = __commonJS((exports, module) => {
|
|
|
3125
3125
|
};
|
|
3126
3126
|
});
|
|
3127
3127
|
|
|
3128
|
-
//
|
|
3128
|
+
// node_modules/ajv/lib/dotjs/enum.js
|
|
3129
3129
|
var require_enum = __commonJS((exports, module) => {
|
|
3130
3130
|
module.exports = function generate_enum(it, $keyword, $ruleType) {
|
|
3131
3131
|
var out = " ";
|
|
@@ -3191,7 +3191,7 @@ var require_enum = __commonJS((exports, module) => {
|
|
|
3191
3191
|
};
|
|
3192
3192
|
});
|
|
3193
3193
|
|
|
3194
|
-
//
|
|
3194
|
+
// node_modules/ajv/lib/dotjs/format.js
|
|
3195
3195
|
var require_format = __commonJS((exports, module) => {
|
|
3196
3196
|
module.exports = function generate_format(it, $keyword, $ruleType) {
|
|
3197
3197
|
var out = " ";
|
|
@@ -3341,7 +3341,7 @@ var require_format = __commonJS((exports, module) => {
|
|
|
3341
3341
|
};
|
|
3342
3342
|
});
|
|
3343
3343
|
|
|
3344
|
-
//
|
|
3344
|
+
// node_modules/ajv/lib/dotjs/if.js
|
|
3345
3345
|
var require_if = __commonJS((exports, module) => {
|
|
3346
3346
|
module.exports = function generate_if(it, $keyword, $ruleType) {
|
|
3347
3347
|
var out = " ";
|
|
@@ -3442,7 +3442,7 @@ var require_if = __commonJS((exports, module) => {
|
|
|
3442
3442
|
};
|
|
3443
3443
|
});
|
|
3444
3444
|
|
|
3445
|
-
//
|
|
3445
|
+
// node_modules/ajv/lib/dotjs/items.js
|
|
3446
3446
|
var require_items = __commonJS((exports, module) => {
|
|
3447
3447
|
module.exports = function generate_items(it, $keyword, $ruleType) {
|
|
3448
3448
|
var out = " ";
|
|
@@ -3580,7 +3580,7 @@ var require_items = __commonJS((exports, module) => {
|
|
|
3580
3580
|
};
|
|
3581
3581
|
});
|
|
3582
3582
|
|
|
3583
|
-
//
|
|
3583
|
+
// node_modules/ajv/lib/dotjs/_limit.js
|
|
3584
3584
|
var require__limit = __commonJS((exports, module) => {
|
|
3585
3585
|
module.exports = function generate__limit(it, $keyword, $ruleType) {
|
|
3586
3586
|
var out = " ";
|
|
@@ -3732,7 +3732,7 @@ var require__limit = __commonJS((exports, module) => {
|
|
|
3732
3732
|
};
|
|
3733
3733
|
});
|
|
3734
3734
|
|
|
3735
|
-
//
|
|
3735
|
+
// node_modules/ajv/lib/dotjs/_limitItems.js
|
|
3736
3736
|
var require__limitItems = __commonJS((exports, module) => {
|
|
3737
3737
|
module.exports = function generate__limitItems(it, $keyword, $ruleType) {
|
|
3738
3738
|
var out = " ";
|
|
@@ -3813,7 +3813,7 @@ var require__limitItems = __commonJS((exports, module) => {
|
|
|
3813
3813
|
};
|
|
3814
3814
|
});
|
|
3815
3815
|
|
|
3816
|
-
//
|
|
3816
|
+
// node_modules/ajv/lib/dotjs/_limitLength.js
|
|
3817
3817
|
var require__limitLength = __commonJS((exports, module) => {
|
|
3818
3818
|
module.exports = function generate__limitLength(it, $keyword, $ruleType) {
|
|
3819
3819
|
var out = " ";
|
|
@@ -3899,7 +3899,7 @@ var require__limitLength = __commonJS((exports, module) => {
|
|
|
3899
3899
|
};
|
|
3900
3900
|
});
|
|
3901
3901
|
|
|
3902
|
-
//
|
|
3902
|
+
// node_modules/ajv/lib/dotjs/_limitProperties.js
|
|
3903
3903
|
var require__limitProperties = __commonJS((exports, module) => {
|
|
3904
3904
|
module.exports = function generate__limitProperties(it, $keyword, $ruleType) {
|
|
3905
3905
|
var out = " ";
|
|
@@ -3980,7 +3980,7 @@ var require__limitProperties = __commonJS((exports, module) => {
|
|
|
3980
3980
|
};
|
|
3981
3981
|
});
|
|
3982
3982
|
|
|
3983
|
-
//
|
|
3983
|
+
// node_modules/ajv/lib/dotjs/multipleOf.js
|
|
3984
3984
|
var require_multipleOf = __commonJS((exports, module) => {
|
|
3985
3985
|
module.exports = function generate_multipleOf(it, $keyword, $ruleType) {
|
|
3986
3986
|
var out = " ";
|
|
@@ -4061,7 +4061,7 @@ var require_multipleOf = __commonJS((exports, module) => {
|
|
|
4061
4061
|
};
|
|
4062
4062
|
});
|
|
4063
4063
|
|
|
4064
|
-
//
|
|
4064
|
+
// node_modules/ajv/lib/dotjs/not.js
|
|
4065
4065
|
var require_not = __commonJS((exports, module) => {
|
|
4066
4066
|
module.exports = function generate_not(it, $keyword, $ruleType) {
|
|
4067
4067
|
var out = " ";
|
|
@@ -4148,7 +4148,7 @@ var require_not = __commonJS((exports, module) => {
|
|
|
4148
4148
|
};
|
|
4149
4149
|
});
|
|
4150
4150
|
|
|
4151
|
-
//
|
|
4151
|
+
// node_modules/ajv/lib/dotjs/oneOf.js
|
|
4152
4152
|
var require_oneOf = __commonJS((exports, module) => {
|
|
4153
4153
|
module.exports = function generate_oneOf(it, $keyword, $ruleType) {
|
|
4154
4154
|
var out = " ";
|
|
@@ -4220,7 +4220,7 @@ var require_oneOf = __commonJS((exports, module) => {
|
|
|
4220
4220
|
};
|
|
4221
4221
|
});
|
|
4222
4222
|
|
|
4223
|
-
//
|
|
4223
|
+
// node_modules/ajv/lib/dotjs/pattern.js
|
|
4224
4224
|
var require_pattern = __commonJS((exports, module) => {
|
|
4225
4225
|
module.exports = function generate_pattern(it, $keyword, $ruleType) {
|
|
4226
4226
|
var out = " ";
|
|
@@ -4296,7 +4296,7 @@ var require_pattern = __commonJS((exports, module) => {
|
|
|
4296
4296
|
};
|
|
4297
4297
|
});
|
|
4298
4298
|
|
|
4299
|
-
//
|
|
4299
|
+
// node_modules/ajv/lib/dotjs/properties.js
|
|
4300
4300
|
var require_properties = __commonJS((exports, module) => {
|
|
4301
4301
|
module.exports = function generate_properties(it, $keyword, $ruleType) {
|
|
4302
4302
|
var out = " ";
|
|
@@ -4609,7 +4609,7 @@ var require_properties = __commonJS((exports, module) => {
|
|
|
4609
4609
|
};
|
|
4610
4610
|
});
|
|
4611
4611
|
|
|
4612
|
-
//
|
|
4612
|
+
// node_modules/ajv/lib/dotjs/propertyNames.js
|
|
4613
4613
|
var require_propertyNames = __commonJS((exports, module) => {
|
|
4614
4614
|
module.exports = function generate_propertyNames(it, $keyword, $ruleType) {
|
|
4615
4615
|
var out = " ";
|
|
@@ -4684,7 +4684,7 @@ var require_propertyNames = __commonJS((exports, module) => {
|
|
|
4684
4684
|
};
|
|
4685
4685
|
});
|
|
4686
4686
|
|
|
4687
|
-
//
|
|
4687
|
+
// node_modules/ajv/lib/dotjs/required.js
|
|
4688
4688
|
var require_required = __commonJS((exports, module) => {
|
|
4689
4689
|
module.exports = function generate_required(it, $keyword, $ruleType) {
|
|
4690
4690
|
var out = " ";
|
|
@@ -4941,7 +4941,7 @@ var require_required = __commonJS((exports, module) => {
|
|
|
4941
4941
|
};
|
|
4942
4942
|
});
|
|
4943
4943
|
|
|
4944
|
-
//
|
|
4944
|
+
// node_modules/ajv/lib/dotjs/uniqueItems.js
|
|
4945
4945
|
var require_uniqueItems = __commonJS((exports, module) => {
|
|
4946
4946
|
module.exports = function generate_uniqueItems(it, $keyword, $ruleType) {
|
|
4947
4947
|
var out = " ";
|
|
@@ -5027,7 +5027,7 @@ var require_uniqueItems = __commonJS((exports, module) => {
|
|
|
5027
5027
|
};
|
|
5028
5028
|
});
|
|
5029
5029
|
|
|
5030
|
-
//
|
|
5030
|
+
// node_modules/ajv/lib/dotjs/index.js
|
|
5031
5031
|
var require_dotjs = __commonJS((exports, module) => {
|
|
5032
5032
|
module.exports = {
|
|
5033
5033
|
$ref: require_ref(),
|
|
@@ -5061,7 +5061,7 @@ var require_dotjs = __commonJS((exports, module) => {
|
|
|
5061
5061
|
};
|
|
5062
5062
|
});
|
|
5063
5063
|
|
|
5064
|
-
//
|
|
5064
|
+
// node_modules/ajv/lib/compile/rules.js
|
|
5065
5065
|
var require_rules = __commonJS((exports, module) => {
|
|
5066
5066
|
var ruleModules = require_dotjs();
|
|
5067
5067
|
var toHash = require_util().toHash;
|
|
@@ -5153,7 +5153,7 @@ var require_rules = __commonJS((exports, module) => {
|
|
|
5153
5153
|
};
|
|
5154
5154
|
});
|
|
5155
5155
|
|
|
5156
|
-
//
|
|
5156
|
+
// node_modules/ajv/lib/data.js
|
|
5157
5157
|
var require_data = __commonJS((exports, module) => {
|
|
5158
5158
|
var KEYWORDS = [
|
|
5159
5159
|
"multipleOf",
|
|
@@ -5201,7 +5201,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
5201
5201
|
};
|
|
5202
5202
|
});
|
|
5203
5203
|
|
|
5204
|
-
//
|
|
5204
|
+
// node_modules/ajv/lib/compile/async.js
|
|
5205
5205
|
var require_async = __commonJS((exports, module) => {
|
|
5206
5206
|
var MissingRefError = require_error_classes().MissingRef;
|
|
5207
5207
|
module.exports = compileAsync;
|
|
@@ -5265,7 +5265,7 @@ var require_async = __commonJS((exports, module) => {
|
|
|
5265
5265
|
}
|
|
5266
5266
|
});
|
|
5267
5267
|
|
|
5268
|
-
//
|
|
5268
|
+
// node_modules/ajv/lib/dotjs/custom.js
|
|
5269
5269
|
var require_custom = __commonJS((exports, module) => {
|
|
5270
5270
|
module.exports = function generate_custom(it, $keyword, $ruleType) {
|
|
5271
5271
|
var out = " ";
|
|
@@ -5488,7 +5488,7 @@ var require_custom = __commonJS((exports, module) => {
|
|
|
5488
5488
|
};
|
|
5489
5489
|
});
|
|
5490
5490
|
|
|
5491
|
-
//
|
|
5491
|
+
// node_modules/ajv/lib/refs/json-schema-draft-07.json
|
|
5492
5492
|
var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
5493
5493
|
module.exports = {
|
|
5494
5494
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -5660,7 +5660,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
|
|
|
5660
5660
|
};
|
|
5661
5661
|
});
|
|
5662
5662
|
|
|
5663
|
-
//
|
|
5663
|
+
// node_modules/ajv/lib/definition_schema.js
|
|
5664
5664
|
var require_definition_schema = __commonJS((exports, module) => {
|
|
5665
5665
|
var metaSchema = require_json_schema_draft_07();
|
|
5666
5666
|
module.exports = {
|
|
@@ -5698,7 +5698,7 @@ var require_definition_schema = __commonJS((exports, module) => {
|
|
|
5698
5698
|
};
|
|
5699
5699
|
});
|
|
5700
5700
|
|
|
5701
|
-
//
|
|
5701
|
+
// node_modules/ajv/lib/keyword.js
|
|
5702
5702
|
var require_keyword = __commonJS((exports, module) => {
|
|
5703
5703
|
var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
|
|
5704
5704
|
var customRuleCode = require_custom();
|
|
@@ -5796,7 +5796,7 @@ var require_keyword = __commonJS((exports, module) => {
|
|
|
5796
5796
|
}
|
|
5797
5797
|
});
|
|
5798
5798
|
|
|
5799
|
-
//
|
|
5799
|
+
// node_modules/ajv/lib/refs/data.json
|
|
5800
5800
|
var require_data2 = __commonJS((exports, module) => {
|
|
5801
5801
|
module.exports = {
|
|
5802
5802
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -5817,7 +5817,7 @@ var require_data2 = __commonJS((exports, module) => {
|
|
|
5817
5817
|
};
|
|
5818
5818
|
});
|
|
5819
5819
|
|
|
5820
|
-
//
|
|
5820
|
+
// node_modules/ajv/lib/ajv.js
|
|
5821
5821
|
var require_ajv = __commonJS((exports, module) => {
|
|
5822
5822
|
var compileSchema = require_compile();
|
|
5823
5823
|
var resolve = require_resolve();
|
|
@@ -218989,7 +218989,7 @@ var require_dist3 = __commonJS((exports) => {
|
|
|
218989
218989
|
exports.visitAsync = visit.visitAsync;
|
|
218990
218990
|
});
|
|
218991
218991
|
|
|
218992
|
-
//
|
|
218992
|
+
// node_modules/zod/v3/external.js
|
|
218993
218993
|
var exports_external = {};
|
|
218994
218994
|
__export(exports_external, {
|
|
218995
218995
|
void: () => voidType,
|
|
@@ -219101,7 +219101,7 @@ __export(exports_external, {
|
|
|
219101
219101
|
BRAND: () => BRAND
|
|
219102
219102
|
});
|
|
219103
219103
|
|
|
219104
|
-
//
|
|
219104
|
+
// node_modules/zod/v3/helpers/util.js
|
|
219105
219105
|
var util;
|
|
219106
219106
|
(function(util2) {
|
|
219107
219107
|
util2.assertEqual = (_) => {};
|
|
@@ -219232,7 +219232,7 @@ var getParsedType = (data) => {
|
|
|
219232
219232
|
}
|
|
219233
219233
|
};
|
|
219234
219234
|
|
|
219235
|
-
//
|
|
219235
|
+
// node_modules/zod/v3/ZodError.js
|
|
219236
219236
|
var ZodIssueCode = util.arrayToEnum([
|
|
219237
219237
|
"invalid_type",
|
|
219238
219238
|
"invalid_literal",
|
|
@@ -219351,7 +219351,7 @@ ZodError.create = (issues) => {
|
|
|
219351
219351
|
return error;
|
|
219352
219352
|
};
|
|
219353
219353
|
|
|
219354
|
-
//
|
|
219354
|
+
// node_modules/zod/v3/locales/en.js
|
|
219355
219355
|
var errorMap = (issue, _ctx) => {
|
|
219356
219356
|
let message;
|
|
219357
219357
|
switch (issue.code) {
|
|
@@ -219454,7 +219454,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
219454
219454
|
};
|
|
219455
219455
|
var en_default = errorMap;
|
|
219456
219456
|
|
|
219457
|
-
//
|
|
219457
|
+
// node_modules/zod/v3/errors.js
|
|
219458
219458
|
var overrideErrorMap = en_default;
|
|
219459
219459
|
function setErrorMap(map) {
|
|
219460
219460
|
overrideErrorMap = map;
|
|
@@ -219462,7 +219462,7 @@ function setErrorMap(map) {
|
|
|
219462
219462
|
function getErrorMap() {
|
|
219463
219463
|
return overrideErrorMap;
|
|
219464
219464
|
}
|
|
219465
|
-
//
|
|
219465
|
+
// node_modules/zod/v3/helpers/parseUtil.js
|
|
219466
219466
|
var makeIssue = (params) => {
|
|
219467
219467
|
const { data, path, errorMaps, issueData } = params;
|
|
219468
219468
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -219568,14 +219568,14 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
219568
219568
|
var isDirty = (x) => x.status === "dirty";
|
|
219569
219569
|
var isValid = (x) => x.status === "valid";
|
|
219570
219570
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
219571
|
-
//
|
|
219571
|
+
// node_modules/zod/v3/helpers/errorUtil.js
|
|
219572
219572
|
var errorUtil;
|
|
219573
219573
|
(function(errorUtil2) {
|
|
219574
219574
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
219575
219575
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
219576
219576
|
})(errorUtil || (errorUtil = {}));
|
|
219577
219577
|
|
|
219578
|
-
//
|
|
219578
|
+
// node_modules/zod/v3/types.js
|
|
219579
219579
|
class ParseInputLazyPath {
|
|
219580
219580
|
constructor(parent, value, path, key) {
|
|
219581
219581
|
this._cachedPath = [];
|
|
@@ -222962,7 +222962,7 @@ var coerce = {
|
|
|
222962
222962
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
222963
222963
|
};
|
|
222964
222964
|
var NEVER = INVALID;
|
|
222965
|
-
//
|
|
222965
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
222966
222966
|
var LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
222967
222967
|
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
222968
222968
|
LATEST_PROTOCOL_VERSION,
|
|
@@ -223504,7 +223504,7 @@ class McpError extends Error {
|
|
|
223504
223504
|
}
|
|
223505
223505
|
}
|
|
223506
223506
|
|
|
223507
|
-
//
|
|
223507
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
223508
223508
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
223509
223509
|
|
|
223510
223510
|
class Protocol {
|
|
@@ -223517,6 +223517,7 @@ class Protocol {
|
|
|
223517
223517
|
this._responseHandlers = new Map;
|
|
223518
223518
|
this._progressHandlers = new Map;
|
|
223519
223519
|
this._timeoutInfo = new Map;
|
|
223520
|
+
this._pendingDebouncedNotifications = new Set;
|
|
223520
223521
|
this.setNotificationHandler(CancelledNotificationSchema, (notification) => {
|
|
223521
223522
|
const controller = this._requestHandlerAbortControllers.get(notification.params.requestId);
|
|
223522
223523
|
controller === null || controller === undefined || controller.abort(notification.params.reason);
|
|
@@ -223589,6 +223590,7 @@ class Protocol {
|
|
|
223589
223590
|
const responseHandlers = this._responseHandlers;
|
|
223590
223591
|
this._responseHandlers = new Map;
|
|
223591
223592
|
this._progressHandlers.clear();
|
|
223593
|
+
this._pendingDebouncedNotifications.clear();
|
|
223592
223594
|
this._transport = undefined;
|
|
223593
223595
|
(_a = this.onclose) === null || _a === undefined || _a.call(this);
|
|
223594
223596
|
const error = new McpError(ErrorCode.ConnectionClosed, "Connection closed");
|
|
@@ -223777,10 +223779,32 @@ class Protocol {
|
|
|
223777
223779
|
});
|
|
223778
223780
|
}
|
|
223779
223781
|
async notification(notification, options) {
|
|
223782
|
+
var _a, _b;
|
|
223780
223783
|
if (!this._transport) {
|
|
223781
223784
|
throw new Error("Not connected");
|
|
223782
223785
|
}
|
|
223783
223786
|
this.assertNotificationCapability(notification.method);
|
|
223787
|
+
const debouncedMethods = (_b = (_a = this._options) === null || _a === undefined ? undefined : _a.debouncedNotificationMethods) !== null && _b !== undefined ? _b : [];
|
|
223788
|
+
const canDebounce = debouncedMethods.includes(notification.method) && !notification.params && !(options === null || options === undefined ? undefined : options.relatedRequestId);
|
|
223789
|
+
if (canDebounce) {
|
|
223790
|
+
if (this._pendingDebouncedNotifications.has(notification.method)) {
|
|
223791
|
+
return;
|
|
223792
|
+
}
|
|
223793
|
+
this._pendingDebouncedNotifications.add(notification.method);
|
|
223794
|
+
Promise.resolve().then(() => {
|
|
223795
|
+
var _a2;
|
|
223796
|
+
this._pendingDebouncedNotifications.delete(notification.method);
|
|
223797
|
+
if (!this._transport) {
|
|
223798
|
+
return;
|
|
223799
|
+
}
|
|
223800
|
+
const jsonrpcNotification2 = {
|
|
223801
|
+
...notification,
|
|
223802
|
+
jsonrpc: "2.0"
|
|
223803
|
+
};
|
|
223804
|
+
(_a2 = this._transport) === null || _a2 === undefined || _a2.send(jsonrpcNotification2, options).catch((error) => this._onerror(error));
|
|
223805
|
+
});
|
|
223806
|
+
return;
|
|
223807
|
+
}
|
|
223784
223808
|
const jsonrpcNotification = {
|
|
223785
223809
|
...notification,
|
|
223786
223810
|
jsonrpc: "2.0"
|
|
@@ -223820,7 +223844,7 @@ function mergeCapabilities(base, additional) {
|
|
|
223820
223844
|
}, { ...base });
|
|
223821
223845
|
}
|
|
223822
223846
|
|
|
223823
|
-
//
|
|
223847
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
223824
223848
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
223825
223849
|
|
|
223826
223850
|
class Server extends Protocol {
|
|
@@ -224000,7 +224024,7 @@ class Server extends Protocol {
|
|
|
224000
224024
|
}
|
|
224001
224025
|
}
|
|
224002
224026
|
|
|
224003
|
-
//
|
|
224027
|
+
// node_modules/zod-to-json-schema/dist/esm/Options.js
|
|
224004
224028
|
var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
|
|
224005
224029
|
var defaultOptions = {
|
|
224006
224030
|
name: undefined,
|
|
@@ -224033,7 +224057,7 @@ var getDefaultOptions = (options) => typeof options === "string" ? {
|
|
|
224033
224057
|
...defaultOptions,
|
|
224034
224058
|
...options
|
|
224035
224059
|
};
|
|
224036
|
-
//
|
|
224060
|
+
// node_modules/zod-to-json-schema/dist/esm/Refs.js
|
|
224037
224061
|
var getRefs = (options) => {
|
|
224038
224062
|
const _options = getDefaultOptions(options);
|
|
224039
224063
|
const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
@@ -224052,7 +224076,7 @@ var getRefs = (options) => {
|
|
|
224052
224076
|
]))
|
|
224053
224077
|
};
|
|
224054
224078
|
};
|
|
224055
|
-
//
|
|
224079
|
+
// node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
224056
224080
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
224057
224081
|
if (!refs?.errorMessages)
|
|
224058
224082
|
return;
|
|
@@ -224067,7 +224091,7 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
224067
224091
|
res[key] = value;
|
|
224068
224092
|
addErrorMessage(res, key, errorMessage, refs);
|
|
224069
224093
|
}
|
|
224070
|
-
//
|
|
224094
|
+
// node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
224071
224095
|
var getRelativePath = (pathA, pathB) => {
|
|
224072
224096
|
let i = 0;
|
|
224073
224097
|
for (;i < pathA.length && i < pathB.length; i++) {
|
|
@@ -224076,7 +224100,7 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
224076
224100
|
}
|
|
224077
224101
|
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
224078
224102
|
};
|
|
224079
|
-
//
|
|
224103
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
224080
224104
|
function parseAnyDef(refs) {
|
|
224081
224105
|
if (refs.target !== "openAi") {
|
|
224082
224106
|
return {};
|
|
@@ -224092,7 +224116,7 @@ function parseAnyDef(refs) {
|
|
|
224092
224116
|
};
|
|
224093
224117
|
}
|
|
224094
224118
|
|
|
224095
|
-
//
|
|
224119
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
224096
224120
|
function parseArrayDef(def, refs) {
|
|
224097
224121
|
const res = {
|
|
224098
224122
|
type: "array"
|
|
@@ -224116,7 +224140,7 @@ function parseArrayDef(def, refs) {
|
|
|
224116
224140
|
return res;
|
|
224117
224141
|
}
|
|
224118
224142
|
|
|
224119
|
-
//
|
|
224143
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
|
|
224120
224144
|
function parseBigintDef(def, refs) {
|
|
224121
224145
|
const res = {
|
|
224122
224146
|
type: "integer",
|
|
@@ -224162,24 +224186,24 @@ function parseBigintDef(def, refs) {
|
|
|
224162
224186
|
return res;
|
|
224163
224187
|
}
|
|
224164
224188
|
|
|
224165
|
-
//
|
|
224189
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
|
|
224166
224190
|
function parseBooleanDef() {
|
|
224167
224191
|
return {
|
|
224168
224192
|
type: "boolean"
|
|
224169
224193
|
};
|
|
224170
224194
|
}
|
|
224171
224195
|
|
|
224172
|
-
//
|
|
224196
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
|
|
224173
224197
|
function parseBrandedDef(_def, refs) {
|
|
224174
224198
|
return parseDef(_def.type._def, refs);
|
|
224175
224199
|
}
|
|
224176
224200
|
|
|
224177
|
-
//
|
|
224201
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
|
|
224178
224202
|
var parseCatchDef = (def, refs) => {
|
|
224179
224203
|
return parseDef(def.innerType._def, refs);
|
|
224180
224204
|
};
|
|
224181
224205
|
|
|
224182
|
-
//
|
|
224206
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/date.js
|
|
224183
224207
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
224184
224208
|
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
224185
224209
|
if (Array.isArray(strategy)) {
|
|
@@ -224224,7 +224248,7 @@ var integerDateParser = (def, refs) => {
|
|
|
224224
224248
|
return res;
|
|
224225
224249
|
};
|
|
224226
224250
|
|
|
224227
|
-
//
|
|
224251
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/default.js
|
|
224228
224252
|
function parseDefaultDef(_def, refs) {
|
|
224229
224253
|
return {
|
|
224230
224254
|
...parseDef(_def.innerType._def, refs),
|
|
@@ -224232,12 +224256,12 @@ function parseDefaultDef(_def, refs) {
|
|
|
224232
224256
|
};
|
|
224233
224257
|
}
|
|
224234
224258
|
|
|
224235
|
-
//
|
|
224259
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
224236
224260
|
function parseEffectsDef(_def, refs) {
|
|
224237
224261
|
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
224238
224262
|
}
|
|
224239
224263
|
|
|
224240
|
-
//
|
|
224264
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
224241
224265
|
function parseEnumDef(def) {
|
|
224242
224266
|
return {
|
|
224243
224267
|
type: "string",
|
|
@@ -224245,7 +224269,7 @@ function parseEnumDef(def) {
|
|
|
224245
224269
|
};
|
|
224246
224270
|
}
|
|
224247
224271
|
|
|
224248
|
-
//
|
|
224272
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
|
|
224249
224273
|
var isJsonSchema7AllOfType = (type) => {
|
|
224250
224274
|
if ("type" in type && type.type === "string")
|
|
224251
224275
|
return false;
|
|
@@ -224287,7 +224311,7 @@ function parseIntersectionDef(def, refs) {
|
|
|
224287
224311
|
} : undefined;
|
|
224288
224312
|
}
|
|
224289
224313
|
|
|
224290
|
-
//
|
|
224314
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
|
|
224291
224315
|
function parseLiteralDef(def, refs) {
|
|
224292
224316
|
const parsedType = typeof def.value;
|
|
224293
224317
|
if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") {
|
|
@@ -224307,7 +224331,7 @@ function parseLiteralDef(def, refs) {
|
|
|
224307
224331
|
};
|
|
224308
224332
|
}
|
|
224309
224333
|
|
|
224310
|
-
//
|
|
224334
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/string.js
|
|
224311
224335
|
var emojiRegex2 = undefined;
|
|
224312
224336
|
var zodPatterns = {
|
|
224313
224337
|
cuid: /^[cC][^\s-]{8,}$/,
|
|
@@ -224604,7 +224628,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
224604
224628
|
return pattern;
|
|
224605
224629
|
}
|
|
224606
224630
|
|
|
224607
|
-
//
|
|
224631
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/record.js
|
|
224608
224632
|
function parseRecordDef(def, refs) {
|
|
224609
224633
|
if (refs.target === "openAi") {
|
|
224610
224634
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
@@ -224656,7 +224680,7 @@ function parseRecordDef(def, refs) {
|
|
|
224656
224680
|
return schema;
|
|
224657
224681
|
}
|
|
224658
224682
|
|
|
224659
|
-
//
|
|
224683
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
224660
224684
|
function parseMapDef(def, refs) {
|
|
224661
224685
|
if (refs.mapStrategy === "record") {
|
|
224662
224686
|
return parseRecordDef(def, refs);
|
|
@@ -224681,7 +224705,7 @@ function parseMapDef(def, refs) {
|
|
|
224681
224705
|
};
|
|
224682
224706
|
}
|
|
224683
224707
|
|
|
224684
|
-
//
|
|
224708
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
224685
224709
|
function parseNativeEnumDef(def) {
|
|
224686
224710
|
const object = def.values;
|
|
224687
224711
|
const actualKeys = Object.keys(def.values).filter((key) => {
|
|
@@ -224695,7 +224719,7 @@ function parseNativeEnumDef(def) {
|
|
|
224695
224719
|
};
|
|
224696
224720
|
}
|
|
224697
224721
|
|
|
224698
|
-
//
|
|
224722
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
224699
224723
|
function parseNeverDef(refs) {
|
|
224700
224724
|
return refs.target === "openAi" ? undefined : {
|
|
224701
224725
|
not: parseAnyDef({
|
|
@@ -224705,7 +224729,7 @@ function parseNeverDef(refs) {
|
|
|
224705
224729
|
};
|
|
224706
224730
|
}
|
|
224707
224731
|
|
|
224708
|
-
//
|
|
224732
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
224709
224733
|
function parseNullDef(refs) {
|
|
224710
224734
|
return refs.target === "openApi3" ? {
|
|
224711
224735
|
enum: ["null"],
|
|
@@ -224715,7 +224739,7 @@ function parseNullDef(refs) {
|
|
|
224715
224739
|
};
|
|
224716
224740
|
}
|
|
224717
224741
|
|
|
224718
|
-
//
|
|
224742
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/union.js
|
|
224719
224743
|
var primitiveMappings = {
|
|
224720
224744
|
ZodString: "string",
|
|
224721
224745
|
ZodNumber: "number",
|
|
@@ -224783,7 +224807,7 @@ var asAnyOf = (def, refs) => {
|
|
|
224783
224807
|
return anyOf.length ? { anyOf } : undefined;
|
|
224784
224808
|
};
|
|
224785
224809
|
|
|
224786
|
-
//
|
|
224810
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
|
|
224787
224811
|
function parseNullableDef(def, refs) {
|
|
224788
224812
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {
|
|
224789
224813
|
if (refs.target === "openApi3") {
|
|
@@ -224815,7 +224839,7 @@ function parseNullableDef(def, refs) {
|
|
|
224815
224839
|
return base && { anyOf: [base, { type: "null" }] };
|
|
224816
224840
|
}
|
|
224817
224841
|
|
|
224818
|
-
//
|
|
224842
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/number.js
|
|
224819
224843
|
function parseNumberDef(def, refs) {
|
|
224820
224844
|
const res = {
|
|
224821
224845
|
type: "number"
|
|
@@ -224864,7 +224888,7 @@ function parseNumberDef(def, refs) {
|
|
|
224864
224888
|
return res;
|
|
224865
224889
|
}
|
|
224866
224890
|
|
|
224867
|
-
//
|
|
224891
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/object.js
|
|
224868
224892
|
function parseObjectDef(def, refs) {
|
|
224869
224893
|
const forceOptionalIntoNullable = refs.target === "openAi";
|
|
224870
224894
|
const result = {
|
|
@@ -224934,7 +224958,7 @@ function safeIsOptional(schema) {
|
|
|
224934
224958
|
}
|
|
224935
224959
|
}
|
|
224936
224960
|
|
|
224937
|
-
//
|
|
224961
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
224938
224962
|
var parseOptionalDef = (def, refs) => {
|
|
224939
224963
|
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
224940
224964
|
return parseDef(def.innerType._def, refs);
|
|
@@ -224953,7 +224977,7 @@ var parseOptionalDef = (def, refs) => {
|
|
|
224953
224977
|
} : parseAnyDef(refs);
|
|
224954
224978
|
};
|
|
224955
224979
|
|
|
224956
|
-
//
|
|
224980
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
224957
224981
|
var parsePipelineDef = (def, refs) => {
|
|
224958
224982
|
if (refs.pipeStrategy === "input") {
|
|
224959
224983
|
return parseDef(def.in._def, refs);
|
|
@@ -224973,12 +224997,12 @@ var parsePipelineDef = (def, refs) => {
|
|
|
224973
224997
|
};
|
|
224974
224998
|
};
|
|
224975
224999
|
|
|
224976
|
-
//
|
|
225000
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
|
|
224977
225001
|
function parsePromiseDef(def, refs) {
|
|
224978
225002
|
return parseDef(def.type._def, refs);
|
|
224979
225003
|
}
|
|
224980
225004
|
|
|
224981
|
-
//
|
|
225005
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/set.js
|
|
224982
225006
|
function parseSetDef(def, refs) {
|
|
224983
225007
|
const items = parseDef(def.valueType._def, {
|
|
224984
225008
|
...refs,
|
|
@@ -224998,7 +225022,7 @@ function parseSetDef(def, refs) {
|
|
|
224998
225022
|
return schema;
|
|
224999
225023
|
}
|
|
225000
225024
|
|
|
225001
|
-
//
|
|
225025
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
|
|
225002
225026
|
function parseTupleDef(def, refs) {
|
|
225003
225027
|
if (def.rest) {
|
|
225004
225028
|
return {
|
|
@@ -225026,24 +225050,24 @@ function parseTupleDef(def, refs) {
|
|
|
225026
225050
|
}
|
|
225027
225051
|
}
|
|
225028
225052
|
|
|
225029
|
-
//
|
|
225053
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
225030
225054
|
function parseUndefinedDef(refs) {
|
|
225031
225055
|
return {
|
|
225032
225056
|
not: parseAnyDef(refs)
|
|
225033
225057
|
};
|
|
225034
225058
|
}
|
|
225035
225059
|
|
|
225036
|
-
//
|
|
225060
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
225037
225061
|
function parseUnknownDef(refs) {
|
|
225038
225062
|
return parseAnyDef(refs);
|
|
225039
225063
|
}
|
|
225040
225064
|
|
|
225041
|
-
//
|
|
225065
|
+
// node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
225042
225066
|
var parseReadonlyDef = (def, refs) => {
|
|
225043
225067
|
return parseDef(def.innerType._def, refs);
|
|
225044
225068
|
};
|
|
225045
225069
|
|
|
225046
|
-
//
|
|
225070
|
+
// node_modules/zod-to-json-schema/dist/esm/selectParser.js
|
|
225047
225071
|
var selectParser = (def, typeName, refs) => {
|
|
225048
225072
|
switch (typeName) {
|
|
225049
225073
|
case ZodFirstPartyTypeKind.ZodString:
|
|
@@ -225121,7 +225145,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
225121
225145
|
}
|
|
225122
225146
|
};
|
|
225123
225147
|
|
|
225124
|
-
//
|
|
225148
|
+
// node_modules/zod-to-json-schema/dist/esm/parseDef.js
|
|
225125
225149
|
function parseDef(def, refs, forceResolution = false) {
|
|
225126
225150
|
const seenItem = refs.seen.get(def);
|
|
225127
225151
|
if (refs.override) {
|
|
@@ -225176,7 +225200,7 @@ var addMeta = (def, refs, jsonSchema) => {
|
|
|
225176
225200
|
}
|
|
225177
225201
|
return jsonSchema;
|
|
225178
225202
|
};
|
|
225179
|
-
//
|
|
225203
|
+
// node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
225180
225204
|
var zodToJsonSchema = (schema, options) => {
|
|
225181
225205
|
const refs = getRefs(options);
|
|
225182
225206
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
@@ -225236,7 +225260,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
225236
225260
|
}
|
|
225237
225261
|
return combined;
|
|
225238
225262
|
};
|
|
225239
|
-
//
|
|
225263
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
225240
225264
|
var McpZodTypeKind;
|
|
225241
225265
|
(function(McpZodTypeKind2) {
|
|
225242
225266
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
@@ -225289,7 +225313,7 @@ function processCreateParams2(params) {
|
|
|
225289
225313
|
return { errorMap: customMap, description };
|
|
225290
225314
|
}
|
|
225291
225315
|
|
|
225292
|
-
//
|
|
225316
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
225293
225317
|
class McpServer {
|
|
225294
225318
|
constructor(serverInfo, options) {
|
|
225295
225319
|
this._registeredResources = {};
|
|
@@ -225846,10 +225870,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
225846
225870
|
}
|
|
225847
225871
|
};
|
|
225848
225872
|
|
|
225849
|
-
//
|
|
225873
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
225850
225874
|
import process2 from "node:process";
|
|
225851
225875
|
|
|
225852
|
-
//
|
|
225876
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
225853
225877
|
class ReadBuffer {
|
|
225854
225878
|
append(chunk) {
|
|
225855
225879
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -225879,7 +225903,7 @@ function serializeMessage(message) {
|
|
|
225879
225903
|
`;
|
|
225880
225904
|
}
|
|
225881
225905
|
|
|
225882
|
-
//
|
|
225906
|
+
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
225883
225907
|
class StdioServerTransport {
|
|
225884
225908
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
225885
225909
|
this._stdin = _stdin;
|
|
@@ -225940,7 +225964,7 @@ class StdioServerTransport {
|
|
|
225940
225964
|
}
|
|
225941
225965
|
}
|
|
225942
225966
|
|
|
225943
|
-
//
|
|
225967
|
+
// node_modules/@enactprotocol/shared/dist/api/enact-api.js
|
|
225944
225968
|
class EnactApiClient {
|
|
225945
225969
|
constructor(baseUrl = "https://enact.tools", supabaseUrl = "https://xjnhhxwxovjifdxdwzih.supabase.co") {
|
|
225946
225970
|
this.baseUrl = baseUrl.replace(/\/$/, "");
|
|
@@ -226238,7 +226262,7 @@ class EnactApiError extends Error {
|
|
|
226238
226262
|
}
|
|
226239
226263
|
}
|
|
226240
226264
|
|
|
226241
|
-
//
|
|
226265
|
+
// node_modules/@enactprotocol/shared/dist/exec/validate.js
|
|
226242
226266
|
function validateAgainstSchema(value, schema, fieldName) {
|
|
226243
226267
|
const { type, format, enum: enumValues, minimum, maximum, pattern, required } = schema;
|
|
226244
226268
|
if (type) {
|
|
@@ -226364,14 +226388,14 @@ function validateInputs(tool, inputs) {
|
|
|
226364
226388
|
return validatedInputs;
|
|
226365
226389
|
}
|
|
226366
226390
|
|
|
226367
|
-
//
|
|
226391
|
+
// node_modules/@enactprotocol/shared/dist/core/DirectExecutionProvider.js
|
|
226368
226392
|
import { spawn } from "child_process";
|
|
226369
226393
|
|
|
226370
|
-
//
|
|
226394
|
+
// node_modules/@enactprotocol/shared/dist/types.js
|
|
226371
226395
|
class ExecutionProvider {
|
|
226372
226396
|
}
|
|
226373
226397
|
|
|
226374
|
-
//
|
|
226398
|
+
// node_modules/@enactprotocol/shared/dist/exec/logger.js
|
|
226375
226399
|
var import_pino = __toESM(require_pino(), 1);
|
|
226376
226400
|
var isSilentMode = () => process.env.CI === "true" || false || process.env.ENACT_SILENT === "true" || process.env.ENACT_SKIP_INTERACTIVE === "true";
|
|
226377
226401
|
var logger = import_pino.default({
|
|
@@ -226419,7 +226443,7 @@ var wrappedLogger = {
|
|
|
226419
226443
|
};
|
|
226420
226444
|
var logger_default = wrappedLogger;
|
|
226421
226445
|
|
|
226422
|
-
//
|
|
226446
|
+
// node_modules/@enactprotocol/shared/dist/utils/timeout.js
|
|
226423
226447
|
function parseTimeout(timeout) {
|
|
226424
226448
|
const match = timeout.match(/^(\d+)([smh])$/);
|
|
226425
226449
|
if (!match) {
|
|
@@ -226439,7 +226463,7 @@ function parseTimeout(timeout) {
|
|
|
226439
226463
|
}
|
|
226440
226464
|
}
|
|
226441
226465
|
|
|
226442
|
-
//
|
|
226466
|
+
// node_modules/@enactprotocol/shared/dist/core/DirectExecutionProvider.js
|
|
226443
226467
|
class DirectExecutionProvider extends ExecutionProvider {
|
|
226444
226468
|
async resolveEnvironmentVariables(envConfig, namespace) {
|
|
226445
226469
|
const resolved = {};
|
|
@@ -235012,7 +235036,7 @@ var import_typescript = __toESM(require_typescript(), 1);
|
|
|
235012
235036
|
var __filename2 = fileURLToPath3(import.meta.url);
|
|
235013
235037
|
var __dirname2 = path5.dirname(__filename2);
|
|
235014
235038
|
var moduleSrcDirectory = `${__dirname2}/../../src/`;
|
|
235015
|
-
//
|
|
235039
|
+
// node_modules/@enactprotocol/shared/dist/core/DaggerExecutionProvider.js
|
|
235016
235040
|
import fs3 from "fs/promises";
|
|
235017
235041
|
import path6 from "path";
|
|
235018
235042
|
import crypto3 from "crypto";
|
|
@@ -235807,7 +235831,7 @@ class DaggerExecutionProvider extends ExecutionProvider {
|
|
|
235807
235831
|
}
|
|
235808
235832
|
}
|
|
235809
235833
|
|
|
235810
|
-
//
|
|
235834
|
+
// node_modules/@enactprotocol/shared/dist/utils/env-loader.js
|
|
235811
235835
|
var import_dotenv = __toESM(require_main(), 1);
|
|
235812
235836
|
import { join as join2 } from "path";
|
|
235813
235837
|
import { homedir as homedir2 } from "os";
|
|
@@ -235969,14 +235993,17 @@ function generateConfigLink(missingVars, toolName) {
|
|
|
235969
235993
|
return `${webUrl}/?vars=${encodedVars}&package=${encodedPackage}`;
|
|
235970
235994
|
}
|
|
235971
235995
|
|
|
235972
|
-
//
|
|
235996
|
+
// node_modules/@enactprotocol/shared/dist/core/EnactCore.js
|
|
235973
235997
|
var import_yaml = __toESM(require_dist3(), 1);
|
|
235974
235998
|
|
|
235975
|
-
//
|
|
235999
|
+
// ../../node_modules/@enactprotocol/security/dist/index.js
|
|
235976
236000
|
import * as nc from "node:crypto";
|
|
235977
236001
|
import fs4 from "fs";
|
|
235978
236002
|
import path7 from "path";
|
|
235979
236003
|
import os4 from "os";
|
|
236004
|
+
import fs22 from "fs";
|
|
236005
|
+
import path22 from "path";
|
|
236006
|
+
import os22 from "os";
|
|
235980
236007
|
var crypto4 = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && ("randomBytes" in nc) ? nc : undefined;
|
|
235981
236008
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
235982
236009
|
function isBytes(a) {
|
|
@@ -238352,7 +238379,7 @@ class KeyManager {
|
|
|
238352
238379
|
static getAllTrustedPublicKeys() {
|
|
238353
238380
|
try {
|
|
238354
238381
|
this.ensureDirectories();
|
|
238355
|
-
return fs4.readdirSync(this.TRUSTED_KEYS_DIR).filter((file) => file.endsWith("
|
|
238382
|
+
return fs4.readdirSync(this.TRUSTED_KEYS_DIR).filter((file) => file.endsWith(".pem")).map((file) => {
|
|
238356
238383
|
try {
|
|
238357
238384
|
const publicKeyPem = fs4.readFileSync(path7.join(this.TRUSTED_KEYS_DIR, file), "utf8").trim();
|
|
238358
238385
|
return CryptoUtils.pemToHex(publicKeyPem, "PUBLIC");
|
|
@@ -238419,6 +238446,165 @@ class KeyManager {
|
|
|
238419
238446
|
}
|
|
238420
238447
|
}
|
|
238421
238448
|
|
|
238449
|
+
class SecurityConfigManager {
|
|
238450
|
+
static ENACT_DIR = path22.join(os22.homedir(), ".enact");
|
|
238451
|
+
static SECURITY_DIR = path22.join(this.ENACT_DIR, "security");
|
|
238452
|
+
static CONFIG_FILE = path22.join(this.SECURITY_DIR, "config.json");
|
|
238453
|
+
static ensureDirectories() {
|
|
238454
|
+
try {
|
|
238455
|
+
if (!fs22.existsSync(this.ENACT_DIR)) {
|
|
238456
|
+
fs22.mkdirSync(this.ENACT_DIR, { recursive: true, mode: 493 });
|
|
238457
|
+
console.log(`Created .enact directory: ${this.ENACT_DIR}`);
|
|
238458
|
+
}
|
|
238459
|
+
if (!fs22.existsSync(this.SECURITY_DIR)) {
|
|
238460
|
+
fs22.mkdirSync(this.SECURITY_DIR, { recursive: true, mode: 493 });
|
|
238461
|
+
console.log(`Created security directory: ${this.SECURITY_DIR}`);
|
|
238462
|
+
}
|
|
238463
|
+
} catch (error) {
|
|
238464
|
+
console.warn(`Failed to create directories: ${error instanceof Error ? error.message : String(error)}`);
|
|
238465
|
+
}
|
|
238466
|
+
}
|
|
238467
|
+
static initializeConfig() {
|
|
238468
|
+
this.ensureDirectories();
|
|
238469
|
+
try {
|
|
238470
|
+
if (fs22.existsSync(this.CONFIG_FILE)) {
|
|
238471
|
+
console.log(`Security config already exists: ${this.CONFIG_FILE}`);
|
|
238472
|
+
return this.loadConfig();
|
|
238473
|
+
}
|
|
238474
|
+
const defaultConfig = { ...DEFAULT_SECURITY_CONFIG };
|
|
238475
|
+
const configContent = JSON.stringify(defaultConfig, null, 2);
|
|
238476
|
+
fs22.writeFileSync(this.CONFIG_FILE, configContent, { mode: 420 });
|
|
238477
|
+
console.log(`Initialized security config: ${this.CONFIG_FILE}`);
|
|
238478
|
+
console.log("Default config:", defaultConfig);
|
|
238479
|
+
return defaultConfig;
|
|
238480
|
+
} catch (error) {
|
|
238481
|
+
console.warn(`Failed to initialize security config: ${error instanceof Error ? error.message : String(error)}`);
|
|
238482
|
+
console.log("Using in-memory default config");
|
|
238483
|
+
return { ...DEFAULT_SECURITY_CONFIG };
|
|
238484
|
+
}
|
|
238485
|
+
}
|
|
238486
|
+
static loadConfig() {
|
|
238487
|
+
try {
|
|
238488
|
+
if (!fs22.existsSync(this.CONFIG_FILE)) {
|
|
238489
|
+
console.log("No security config file found, initializing...");
|
|
238490
|
+
return this.initializeConfig();
|
|
238491
|
+
}
|
|
238492
|
+
const configContent = fs22.readFileSync(this.CONFIG_FILE, "utf8");
|
|
238493
|
+
const config = JSON.parse(configContent);
|
|
238494
|
+
const mergedConfig = { ...DEFAULT_SECURITY_CONFIG, ...config };
|
|
238495
|
+
console.log(`Loaded security config from: ${this.CONFIG_FILE}`);
|
|
238496
|
+
return mergedConfig;
|
|
238497
|
+
} catch (error) {
|
|
238498
|
+
console.warn(`Failed to load security config: ${error instanceof Error ? error.message : String(error)}`);
|
|
238499
|
+
console.log("Using default config");
|
|
238500
|
+
return { ...DEFAULT_SECURITY_CONFIG };
|
|
238501
|
+
}
|
|
238502
|
+
}
|
|
238503
|
+
static saveConfig(config) {
|
|
238504
|
+
this.ensureDirectories();
|
|
238505
|
+
try {
|
|
238506
|
+
const configToSave = { ...DEFAULT_SECURITY_CONFIG, ...config };
|
|
238507
|
+
const configContent = JSON.stringify(configToSave, null, 2);
|
|
238508
|
+
fs22.writeFileSync(this.CONFIG_FILE, configContent, { mode: 420 });
|
|
238509
|
+
console.log(`Saved security config to: ${this.CONFIG_FILE}`);
|
|
238510
|
+
return true;
|
|
238511
|
+
} catch (error) {
|
|
238512
|
+
console.error(`Failed to save security config: ${error instanceof Error ? error.message : String(error)}`);
|
|
238513
|
+
return false;
|
|
238514
|
+
}
|
|
238515
|
+
}
|
|
238516
|
+
static updateConfig(updates) {
|
|
238517
|
+
const currentConfig = this.loadConfig();
|
|
238518
|
+
const updatedConfig = { ...currentConfig, ...updates };
|
|
238519
|
+
if (this.saveConfig(updatedConfig)) {
|
|
238520
|
+
console.log("Security config updated:", updates);
|
|
238521
|
+
return updatedConfig;
|
|
238522
|
+
} else {
|
|
238523
|
+
console.warn("Failed to save updated config, returning current config");
|
|
238524
|
+
return currentConfig;
|
|
238525
|
+
}
|
|
238526
|
+
}
|
|
238527
|
+
static resetToDefaults() {
|
|
238528
|
+
const defaultConfig = { ...DEFAULT_SECURITY_CONFIG };
|
|
238529
|
+
if (this.saveConfig(defaultConfig)) {
|
|
238530
|
+
console.log("Security config reset to defaults");
|
|
238531
|
+
return defaultConfig;
|
|
238532
|
+
} else {
|
|
238533
|
+
console.warn("Failed to reset config");
|
|
238534
|
+
return this.loadConfig();
|
|
238535
|
+
}
|
|
238536
|
+
}
|
|
238537
|
+
static getPaths() {
|
|
238538
|
+
return {
|
|
238539
|
+
enactDir: this.ENACT_DIR,
|
|
238540
|
+
securityDir: this.SECURITY_DIR,
|
|
238541
|
+
configFile: this.CONFIG_FILE
|
|
238542
|
+
};
|
|
238543
|
+
}
|
|
238544
|
+
static configExists() {
|
|
238545
|
+
return fs22.existsSync(this.CONFIG_FILE);
|
|
238546
|
+
}
|
|
238547
|
+
static getStatus() {
|
|
238548
|
+
const paths = this.getPaths();
|
|
238549
|
+
return {
|
|
238550
|
+
enactDirExists: fs22.existsSync(paths.enactDir),
|
|
238551
|
+
securityDirExists: fs22.existsSync(paths.securityDir),
|
|
238552
|
+
configFileExists: fs22.existsSync(paths.configFile),
|
|
238553
|
+
paths
|
|
238554
|
+
};
|
|
238555
|
+
}
|
|
238556
|
+
static validateConfig(config) {
|
|
238557
|
+
if (typeof config !== "object" || config === null) {
|
|
238558
|
+
return false;
|
|
238559
|
+
}
|
|
238560
|
+
if ("allowLocalUnsigned" in config && typeof config.allowLocalUnsigned !== "boolean") {
|
|
238561
|
+
return false;
|
|
238562
|
+
}
|
|
238563
|
+
if ("minimumSignatures" in config) {
|
|
238564
|
+
if (typeof config.minimumSignatures !== "number" || config.minimumSignatures < 0 || !Number.isInteger(config.minimumSignatures)) {
|
|
238565
|
+
return false;
|
|
238566
|
+
}
|
|
238567
|
+
}
|
|
238568
|
+
return true;
|
|
238569
|
+
}
|
|
238570
|
+
static importConfig(filePath) {
|
|
238571
|
+
try {
|
|
238572
|
+
if (!fs22.existsSync(filePath)) {
|
|
238573
|
+
console.error(`Config file does not exist: ${filePath}`);
|
|
238574
|
+
return null;
|
|
238575
|
+
}
|
|
238576
|
+
const configContent = fs22.readFileSync(filePath, "utf8");
|
|
238577
|
+
const config = JSON.parse(configContent);
|
|
238578
|
+
if (!this.validateConfig(config)) {
|
|
238579
|
+
console.error("Invalid config format");
|
|
238580
|
+
return null;
|
|
238581
|
+
}
|
|
238582
|
+
if (this.saveConfig(config)) {
|
|
238583
|
+
console.log(`Imported config from: ${filePath}`);
|
|
238584
|
+
return config;
|
|
238585
|
+
} else {
|
|
238586
|
+
console.error("Failed to save imported config");
|
|
238587
|
+
return null;
|
|
238588
|
+
}
|
|
238589
|
+
} catch (error) {
|
|
238590
|
+
console.error(`Failed to import config: ${error instanceof Error ? error.message : String(error)}`);
|
|
238591
|
+
return null;
|
|
238592
|
+
}
|
|
238593
|
+
}
|
|
238594
|
+
static exportConfig(filePath) {
|
|
238595
|
+
try {
|
|
238596
|
+
const config = this.loadConfig();
|
|
238597
|
+
const configContent = JSON.stringify(config, null, 2);
|
|
238598
|
+
fs22.writeFileSync(filePath, configContent, { mode: 420 });
|
|
238599
|
+
console.log(`Exported config to: ${filePath}`);
|
|
238600
|
+
return true;
|
|
238601
|
+
} catch (error) {
|
|
238602
|
+
console.error(`Failed to export config: ${error instanceof Error ? error.message : String(error)}`);
|
|
238603
|
+
return false;
|
|
238604
|
+
}
|
|
238605
|
+
}
|
|
238606
|
+
}
|
|
238607
|
+
|
|
238422
238608
|
class SigningService {
|
|
238423
238609
|
static signDocument(document, privateKey, options = {}) {
|
|
238424
238610
|
const {
|
|
@@ -238445,14 +238631,15 @@ class SigningService {
|
|
|
238445
238631
|
timestamp: Date.now()
|
|
238446
238632
|
};
|
|
238447
238633
|
}
|
|
238448
|
-
static verifyDocument(document, signature, options = {}, securityConfig
|
|
238634
|
+
static verifyDocument(document, signature, options = {}, securityConfig) {
|
|
238449
238635
|
const {
|
|
238450
238636
|
useEnactDefaults = false,
|
|
238451
238637
|
includeFields,
|
|
238452
238638
|
excludeFields,
|
|
238453
238639
|
additionalCriticalFields
|
|
238454
238640
|
} = options;
|
|
238455
|
-
const
|
|
238641
|
+
const loadedConfig = securityConfig ?? SecurityConfigManager.loadConfig();
|
|
238642
|
+
const config = { ...DEFAULT_SECURITY_CONFIG, ...loadedConfig };
|
|
238456
238643
|
const signatures = document.signatures || [signature];
|
|
238457
238644
|
if (signatures.length < (config.minimumSignatures ?? 1)) {
|
|
238458
238645
|
if (config.allowLocalUnsigned && signatures.length === 0) {
|
|
@@ -238521,7 +238708,7 @@ class SigningService {
|
|
|
238521
238708
|
}
|
|
238522
238709
|
}
|
|
238523
238710
|
|
|
238524
|
-
//
|
|
238711
|
+
// node_modules/@enactprotocol/shared/dist/core/EnactCore.js
|
|
238525
238712
|
class EnactCore {
|
|
238526
238713
|
constructor(options = {}) {
|
|
238527
238714
|
this.options = {
|
|
@@ -238720,6 +238907,7 @@ class EnactCore {
|
|
|
238720
238907
|
}
|
|
238721
238908
|
}
|
|
238722
238909
|
async verifyTool(tool, dangerouslySkipVerification = false) {
|
|
238910
|
+
console.log("=== VERIFY TOOL CALLED ===", tool.name, "skipVerification:", dangerouslySkipVerification);
|
|
238723
238911
|
if (dangerouslySkipVerification) {
|
|
238724
238912
|
logger_default.warn(`Skipping signature verification for tool: ${tool.name}`);
|
|
238725
238913
|
return;
|
|
@@ -238728,22 +238916,32 @@ class EnactCore {
|
|
|
238728
238916
|
if (!tool.signatures || tool.signatures.length === 0) {
|
|
238729
238917
|
throw new Error(`Tool ${tool.name} does not have any signatures`);
|
|
238730
238918
|
}
|
|
238919
|
+
console.log("=== TOOL SIGNATURE DATA ===");
|
|
238920
|
+
console.log("Tool signatures from database:", JSON.stringify(tool.signatures, null, 2));
|
|
238921
|
+
console.log("Tool command:", tool.command);
|
|
238731
238922
|
const documentForVerification = {
|
|
238732
238923
|
command: tool.command
|
|
238733
238924
|
};
|
|
238734
238925
|
const referenceSignature = {
|
|
238735
238926
|
signature: tool.signatures[0].value,
|
|
238736
|
-
publicKey:
|
|
238927
|
+
publicKey: "",
|
|
238737
238928
|
algorithm: tool.signatures[0].algorithm,
|
|
238738
238929
|
timestamp: new Date(tool.signatures[0].created).getTime()
|
|
238739
238930
|
};
|
|
238740
238931
|
const canonicalDoc = SigningService.getCanonicalDocument(documentForVerification, { includeFields: ["command"] });
|
|
238932
|
+
console.log("=== SIGNATURE VERIFICATION DEBUG ===");
|
|
238933
|
+
console.log("Original document for verification:", JSON.stringify(documentForVerification, null, 2));
|
|
238934
|
+
console.log("Canonical document:", JSON.stringify(canonicalDoc, null, 2));
|
|
238741
238935
|
const docString = JSON.stringify(canonicalDoc);
|
|
238742
238936
|
const messageHash = CryptoUtils.hash(docString);
|
|
238937
|
+
console.log("Document string:", docString);
|
|
238938
|
+
console.log("Message hash:", messageHash);
|
|
238939
|
+
console.log("Reference signature object:", JSON.stringify(referenceSignature, null, 2));
|
|
238743
238940
|
const directVerify = CryptoUtils.verify(referenceSignature.publicKey, messageHash, referenceSignature.signature);
|
|
238744
|
-
console.log("Direct crypto verification result:", directVerify);
|
|
238941
|
+
console.log("KEITH DEBUG - Direct crypto verification result:", directVerify, "publicKey:", referenceSignature.publicKey);
|
|
238745
238942
|
const trustedKeys = KeyManager.getAllTrustedPublicKeys();
|
|
238746
238943
|
console.log("Trusted keys:", trustedKeys);
|
|
238944
|
+
console.log("Our referenceSignature.publicKey:", JSON.stringify(referenceSignature.publicKey));
|
|
238747
238945
|
console.log("Is our public key trusted?", trustedKeys.includes(referenceSignature.publicKey));
|
|
238748
238946
|
const isValid2 = SigningService.verifyDocument(documentForVerification, referenceSignature, { includeFields: ["command"] });
|
|
238749
238947
|
console.log("Final verification result:", isValid2);
|
|
@@ -238762,7 +238960,15 @@ class EnactCore {
|
|
|
238762
238960
|
logger_default.info(`Executing tool: ${tool.name}`);
|
|
238763
238961
|
validateToolStructure(tool);
|
|
238764
238962
|
const validatedInputs = validateInputs(tool, inputs);
|
|
238765
|
-
|
|
238963
|
+
const config = SecurityConfigManager.loadConfig();
|
|
238964
|
+
if (options.isLocalFile && config.allowLocalUnsigned) {
|
|
238965
|
+
logger_default.warn(`Executing local file without signature verification: ${tool.name} (you can disallow in your security config)`);
|
|
238966
|
+
}
|
|
238967
|
+
if (options.dangerouslySkipVerification) {
|
|
238968
|
+
logger_default.warn(`Skipping signature verification for tool: ${tool.name} because of dangerouslySkipVerification option`);
|
|
238969
|
+
}
|
|
238970
|
+
const skipVerification = options.isLocalFile && config.allowLocalUnsigned || Boolean(options.dangerouslySkipVerification);
|
|
238971
|
+
await this.verifyTool(tool, skipVerification);
|
|
238766
238972
|
const { resolved: envVars } = await resolveToolEnvironmentVariables(tool.name, tool.env || {});
|
|
238767
238973
|
return await this.executionProvider.execute(tool, { ...validatedInputs, ...envVars }, {
|
|
238768
238974
|
vars: { ...envVars, ...validatedInputs },
|
|
@@ -238924,14 +239130,14 @@ class EnactCore {
|
|
|
238924
239130
|
return `exec_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`;
|
|
238925
239131
|
}
|
|
238926
239132
|
}
|
|
238927
|
-
//
|
|
239133
|
+
// node_modules/@enactprotocol/shared/dist/utils/config.js
|
|
238928
239134
|
import { homedir as homedir3 } from "os";
|
|
238929
239135
|
import { join as join3 } from "path";
|
|
238930
239136
|
var CONFIG_DIR2 = join3(homedir3(), ".enact");
|
|
238931
239137
|
var CONFIG_FILE = join3(CONFIG_DIR2, "config.json");
|
|
238932
|
-
//
|
|
238933
|
-
var __dirname = "/Users/keithgroves/projects/enact/enact-cli/packages/shared/dist/utils";
|
|
238934
|
-
//
|
|
239138
|
+
// node_modules/@enactprotocol/shared/dist/utils/help.js
|
|
239139
|
+
var __dirname = "/Users/keithgroves/projects/enact/enact-cli/packages/mcp-server/node_modules/@enactprotocol/shared/dist/utils";
|
|
239140
|
+
// node_modules/@enactprotocol/shared/dist/utils/logger.js
|
|
238935
239141
|
var LogLevel;
|
|
238936
239142
|
(function(LogLevel2) {
|
|
238937
239143
|
LogLevel2[LogLevel2["DEBUG"] = 0] = "DEBUG";
|
|
@@ -238941,7 +239147,7 @@ var LogLevel;
|
|
|
238941
239147
|
LogLevel2[LogLevel2["ERROR"] = 4] = "ERROR";
|
|
238942
239148
|
})(LogLevel || (LogLevel = {}));
|
|
238943
239149
|
var currentLogLevel = LogLevel.INFO;
|
|
238944
|
-
//
|
|
239150
|
+
// node_modules/@enactprotocol/shared/dist/utils/silent-monitor.js
|
|
238945
239151
|
class McpSilentOperationMonitor {
|
|
238946
239152
|
getOriginalConsoleError() {
|
|
238947
239153
|
return this.originalConsoleError;
|
|
@@ -239069,9 +239275,9 @@ function validateSilentEnvironment() {
|
|
|
239069
239275
|
issues
|
|
239070
239276
|
};
|
|
239071
239277
|
}
|
|
239072
|
-
//
|
|
239073
|
-
var __filename = "/Users/keithgroves/projects/enact/enact-cli/packages/shared/dist/utils/version.js";
|
|
239074
|
-
//
|
|
239278
|
+
// node_modules/@enactprotocol/shared/dist/utils/version.js
|
|
239279
|
+
var __filename = "/Users/keithgroves/projects/enact/enact-cli/packages/mcp-server/node_modules/@enactprotocol/shared/dist/utils/version.js";
|
|
239280
|
+
// node_modules/@enactprotocol/shared/dist/web/env-manager-server.js
|
|
239075
239281
|
import { createServer } from "http";
|
|
239076
239282
|
import { parse as parse3 } from "url";
|
|
239077
239283
|
import { readFile as readFile2, writeFile, mkdir, readdir, stat as stat2 } from "fs/promises";
|
|
@@ -239352,7 +239558,7 @@ function startEnvManagerServer(port = 5555) {
|
|
|
239352
239558
|
});
|
|
239353
239559
|
});
|
|
239354
239560
|
}
|
|
239355
|
-
//
|
|
239561
|
+
// node_modules/@enactprotocol/shared/dist/LocalToolResolver.js
|
|
239356
239562
|
var yaml2 = __toESM(require_dist3(), 1);
|
|
239357
239563
|
import { promises as fs5, readFileSync as readFileSync3, writeFileSync } from "fs";
|
|
239358
239564
|
import { join as join5, resolve, basename as basename2 } from "path";
|
|
@@ -239638,7 +239844,7 @@ Use the MCP tools to manage this directory programmatically.
|
|
|
239638
239844
|
}
|
|
239639
239845
|
}
|
|
239640
239846
|
var LocalToolResolver_default = LocalToolResolver;
|
|
239641
|
-
//
|
|
239847
|
+
// node_modules/@enactprotocol/shared/dist/services/McpCoreService.js
|
|
239642
239848
|
class McpCoreService {
|
|
239643
239849
|
constructor(options) {
|
|
239644
239850
|
this.core = new EnactCore({
|
|
@@ -239708,7 +239914,7 @@ class McpCoreService {
|
|
|
239708
239914
|
}
|
|
239709
239915
|
}
|
|
239710
239916
|
var mcpCoreService = new McpCoreService;
|
|
239711
|
-
//
|
|
239917
|
+
// node_modules/@enactprotocol/shared/dist/lib/enact-direct.js
|
|
239712
239918
|
class EnactDirect {
|
|
239713
239919
|
constructor(options = {}) {
|
|
239714
239920
|
this.core = new EnactCore({
|
|
@@ -240553,21 +240759,39 @@ Error: ${operation.error instanceof Error ? operation.error.message : String(ope
|
|
|
240553
240759
|
});
|
|
240554
240760
|
server2.registerTool("launch-env-manager-server", {
|
|
240555
240761
|
title: "Launch Environment Manager",
|
|
240556
|
-
description: "Start the web-based environment variable manager server",
|
|
240762
|
+
description: "Start the web-based environment variable manager server. Supports URL parameters to pre-select package and variables for bulk configuration. Use 'package' to pre-select a namespace and 'vars' (string or array) to open bulk edit modal with specific variables.",
|
|
240557
240763
|
inputSchema: {
|
|
240558
|
-
port: exports_external.number().default(5555).describe("Port to run the server on"),
|
|
240559
|
-
async: exports_external.boolean().default(true).describe("Run in background")
|
|
240764
|
+
port: exports_external.number().default(5555).describe("Port to run the server on (default: 5555)"),
|
|
240765
|
+
async: exports_external.boolean().default(true).describe("Run in background (default: true)"),
|
|
240766
|
+
package: exports_external.string().optional().describe("Pre-select package namespace (e.g., 'demo/test'). Opens directly to this package's variables."),
|
|
240767
|
+
vars: exports_external.union([exports_external.string(), exports_external.array(exports_external.string())]).optional().describe("Pre-select variables for bulk editing. Single variable: 'API_KEY' or multiple: ['API_KEY', 'DB_URL']. Opens bulk edit modal automatically.")
|
|
240560
240768
|
}
|
|
240561
|
-
}, async ({ port = 5555, async = true }) => {
|
|
240769
|
+
}, async ({ port = 5555, async = true, package: packageName, vars }) => {
|
|
240562
240770
|
try {
|
|
240771
|
+
const buildUrl = (basePort) => {
|
|
240772
|
+
const baseUrl = `http://localhost:${basePort}`;
|
|
240773
|
+
const params = new URLSearchParams;
|
|
240774
|
+
if (packageName) {
|
|
240775
|
+
params.set("package", packageName);
|
|
240776
|
+
}
|
|
240777
|
+
if (vars) {
|
|
240778
|
+
if (Array.isArray(vars)) {
|
|
240779
|
+
params.set("vars", JSON.stringify(vars));
|
|
240780
|
+
} else {
|
|
240781
|
+
params.set("vars", vars);
|
|
240782
|
+
}
|
|
240783
|
+
}
|
|
240784
|
+
return params.toString() ? `${baseUrl}/?${params.toString()}` : baseUrl;
|
|
240785
|
+
};
|
|
240563
240786
|
if (webServerInstance) {
|
|
240787
|
+
const url = buildUrl(webServerPort);
|
|
240564
240788
|
return {
|
|
240565
240789
|
content: [
|
|
240566
240790
|
{
|
|
240567
240791
|
type: "text",
|
|
240568
240792
|
text: `\uD83C\uDF10 Environment Manager already running on port ${webServerPort}
|
|
240569
240793
|
|
|
240570
|
-
URL:
|
|
240794
|
+
URL: ${url}
|
|
240571
240795
|
|
|
240572
240796
|
Use this interface to manage environment variables for your tools.`
|
|
240573
240797
|
}
|
|
@@ -240598,6 +240822,7 @@ Use this interface to manage environment variables for your tools.`
|
|
|
240598
240822
|
operation.status = "failed";
|
|
240599
240823
|
operation.error = error;
|
|
240600
240824
|
});
|
|
240825
|
+
const futureUrl = buildUrl(port);
|
|
240601
240826
|
return {
|
|
240602
240827
|
content: [
|
|
240603
240828
|
{
|
|
@@ -240608,7 +240833,7 @@ Operation ID: ${operationId}
|
|
|
240608
240833
|
|
|
240609
240834
|
⏳ Use "check-operation-status" with ID "${operationId}" to see when ready.
|
|
240610
240835
|
|
|
240611
|
-
Once running:
|
|
240836
|
+
Once running: ${futureUrl}`
|
|
240612
240837
|
}
|
|
240613
240838
|
]
|
|
240614
240839
|
};
|
|
@@ -240616,13 +240841,14 @@ Once running: http://localhost:${port}`
|
|
|
240616
240841
|
const { server: webServer, port: actualPort } = await startEnvManagerServer(port);
|
|
240617
240842
|
webServerInstance = webServer;
|
|
240618
240843
|
webServerPort = actualPort;
|
|
240844
|
+
const url = buildUrl(actualPort);
|
|
240619
240845
|
return {
|
|
240620
240846
|
content: [
|
|
240621
240847
|
{
|
|
240622
240848
|
type: "text",
|
|
240623
240849
|
text: `✅ Environment Manager started!
|
|
240624
240850
|
|
|
240625
|
-
URL:
|
|
240851
|
+
URL: ${url}
|
|
240626
240852
|
|
|
240627
240853
|
Manage environment variables for your Enact tools through the web interface.`
|
|
240628
240854
|
}
|