@mcpc-tech/cli 0.1.45 → 0.1.46

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/bin/mcpc.cjs CHANGED
@@ -10853,7 +10853,8 @@ var ajv = new import_ajv2.Ajv({
10853
10853
  import_ajv_formats2.default.default(ajv);
10854
10854
  import_ajv_errors.default.default(ajv);
10855
10855
  function validateSchema(data, schema) {
10856
- const validate = ajv.compile(schema);
10856
+ const cleanedSchema = cleanToolSchema(schema);
10857
+ const validate = ajv.compile(cleanedSchema);
10857
10858
  if (!validate(data)) {
10858
10859
  const errors = validate.errors;
10859
10860
  const customErrors = errors.filter((err) => err.keyword === "errorMessage");
package/bin/mcpc.mjs CHANGED
@@ -10861,7 +10861,8 @@ var ajv = new Ajv2({
10861
10861
  addFormats.default(ajv);
10862
10862
  ajvErrors.default(ajv);
10863
10863
  function validateSchema(data, schema) {
10864
- const validate = ajv.compile(schema);
10864
+ const cleanedSchema = cleanToolSchema(schema);
10865
+ const validate = ajv.compile(cleanedSchema);
10865
10866
  if (!validate(data)) {
10866
10867
  const errors = validate.errors;
10867
10868
  const customErrors = errors.filter((err) => err.keyword === "errorMessage");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/cli",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "homepage": "https://jsr.io/@mcpc/cli",
5
5
  "dependencies": {
6
6
  "@hono/zod-openapi": "^0.19.2",