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