@sit-onyx/modelcontextprotocol 0.4.1-dev-20261014112539 → 0.4.1-dev-20261015132818

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.
Files changed (2) hide show
  1. package/dist/index.js +65 -33
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -97,7 +97,7 @@ var package_default = {
97
97
  "vite": "catalog:",
98
98
  "vue-component-meta": "catalog:",
99
99
  "yaml": "^2.9.1",
100
- "zod": "^4.6.5"
100
+ "zod": "^4.6.7"
101
101
  },
102
102
  engines: { "node": ">=20" }
103
103
  };
@@ -235,7 +235,7 @@ var cached$1 = (func) => {
235
235
  };
236
236
  };
237
237
  //#endregion
238
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
238
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
239
239
  function getEnumValues(entries) {
240
240
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
241
241
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -542,6 +542,17 @@ function prefixIssues(path, issues) {
542
542
  function unwrapMessage(message) {
543
543
  return typeof message === "string" ? message : message?.message;
544
544
  }
545
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
546
+ function sizeCaps(defChecks) {
547
+ const caps = [];
548
+ for (const ch of defChecks ?? []) {
549
+ const d = ch._zod.def;
550
+ if (!/_(length|size)$|_equals$/.test(d.check)) break;
551
+ const max = d.maximum ?? d.length ?? d.size;
552
+ if (max >= 0) caps.push([max, ch]);
553
+ }
554
+ return caps;
555
+ }
545
556
  function attachSchema(issues, start, inst) {
546
557
  var _a;
547
558
  for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
@@ -758,7 +769,7 @@ function constantCatch(value) {
758
769
  return fn;
759
770
  }
760
771
  //#endregion
761
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
772
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js
762
773
  var _a$1;
763
774
  var _zodDesc = {
764
775
  value: void 0,
@@ -864,7 +875,7 @@ function config(newConfig) {
864
875
  return globalConfig;
865
876
  }
866
877
  //#endregion
867
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
878
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js
868
879
  function _getMessage() {
869
880
  const internals = this._zod;
870
881
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -980,7 +991,7 @@ function formatError(error, mapper = (issue) => issue.message) {
980
991
  return fieldErrors;
981
992
  }
982
993
  //#endregion
983
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
994
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js
984
995
  function finalizeParams(callee, params) {
985
996
  return {
986
997
  callee: params?.callee ?? callee,
@@ -1187,7 +1198,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1187
1198
  return _safeParseAsync(_Err)(schema, value, _ctx);
1188
1199
  };
1189
1200
  //#endregion
1190
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
1201
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js
1191
1202
  /**
1192
1203
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
1193
1204
  * (timestamps embedded in the id). Use {@link cuid2} instead.
@@ -1260,7 +1271,7 @@ var _null$2 = /^null$/i;
1260
1271
  var lowercase = /^[^A-Z]*$/;
1261
1272
  var uppercase = /^[^a-z]*$/;
1262
1273
  //#endregion
1263
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
1274
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js
1264
1275
  var $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
1265
1276
  var _a;
1266
1277
  inst._zod ?? (inst._zod = {});
@@ -1556,7 +1567,7 @@ var $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst,
1556
1567
  };
1557
1568
  });
1558
1569
  //#endregion
1559
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
1570
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js
1560
1571
  var Doc = class {
1561
1572
  constructor(args = [], closed = {}) {
1562
1573
  this.content = [];
@@ -1590,14 +1601,14 @@ var Doc = class {
1590
1601
  }
1591
1602
  };
1592
1603
  //#endregion
1593
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
1604
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js
1594
1605
  var version$1 = {
1595
1606
  major: 4,
1596
1607
  minor: 6,
1597
- patch: 5
1608
+ patch: 7
1598
1609
  };
1599
1610
  //#endregion
1600
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
1611
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js
1601
1612
  var $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
1602
1613
  var _a;
1603
1614
  inst ?? (inst = {});
@@ -2110,6 +2121,26 @@ var $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
2110
2121
  return payload;
2111
2122
  };
2112
2123
  });
2124
+ function capSize(inst, size) {
2125
+ const caps = sizeCaps(inst._zod.def.checks);
2126
+ if (!caps.length) return;
2127
+ const cap = Math.min(...caps.map((c) => c[0]));
2128
+ const parse = inst._zod.parse;
2129
+ inst._zod.parse = (payload, ctx) => {
2130
+ const n = size(payload.value);
2131
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
2132
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
2133
+ const start = payload.issues.length;
2134
+ ch._zod.check(payload);
2135
+ payload.issues[start].continue = false;
2136
+ attachSchema(payload.issues, start, inst);
2137
+ return payload;
2138
+ }
2139
+ }
2140
+ return parse(payload, ctx);
2141
+ };
2142
+ }
2143
+ var arraySize = (input) => Array.isArray(input) ? input.length : -1;
2113
2144
  function handleArrayResult(result, final, index) {
2114
2145
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
2115
2146
  final.value[index] = result.value;
@@ -2147,6 +2178,7 @@ var $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
2147
2178
  if (proms.length) return Promise.all(proms).then(() => payload);
2148
2179
  return payload;
2149
2180
  };
2181
+ capSize(inst, arraySize);
2150
2182
  });
2151
2183
  function handlePropertyResult(result, final, key, input, optin, optout) {
2152
2184
  const isPresent = key in input;
@@ -2255,7 +2287,7 @@ var $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
2255
2287
  }
2256
2288
  return propValues;
2257
2289
  });
2258
- const isObject$2 = isObject;
2290
+ const isObject$1 = isObject;
2259
2291
  const catchall = def.catchall;
2260
2292
  let value;
2261
2293
  const memo = globalConfig.memoizer;
@@ -2263,7 +2295,7 @@ var $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
2263
2295
  inst._zod.parse = (payload, ctx) => {
2264
2296
  value ?? (value = _normalized.value);
2265
2297
  const input = payload.value;
2266
- if (!isObject$2(input)) {
2298
+ if (!isObject$1(input)) {
2267
2299
  payload.issues.push({
2268
2300
  expected: "object",
2269
2301
  code: "invalid_type",
@@ -2393,7 +2425,7 @@ var $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
2393
2425
  return doc.compile();
2394
2426
  };
2395
2427
  let fastpass;
2396
- const isObject$1 = isObject;
2428
+ const isObject$2 = isObject;
2397
2429
  const jit = !globalConfig.jitless;
2398
2430
  const fastEnabled = jit && allowsEval.value;
2399
2431
  const catchall = def.catchall;
@@ -2401,7 +2433,7 @@ var $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
2401
2433
  inst._zod.parse = (payload, ctx) => {
2402
2434
  value ?? (value = _normalized.value);
2403
2435
  const input = payload.value;
2404
- if (!isObject$1(input)) {
2436
+ if (!isObject$2(input)) {
2405
2437
  payload.issues.push({
2406
2438
  expected: "object",
2407
2439
  code: "invalid_type",
@@ -2983,7 +3015,7 @@ function handleRefineResult(result, payload, input, inst) {
2983
3015
  }
2984
3016
  }
2985
3017
  //#endregion
2986
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
3018
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
2987
3019
  var $ZodCyclicError = class extends Error {
2988
3020
  constructor() {
2989
3021
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -3236,7 +3268,7 @@ function isBackEdge(ctx, value) {
3236
3268
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
3237
3269
  }
3238
3270
  //#endregion
3239
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
3271
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/en.js
3240
3272
  var error$1 = () => {
3241
3273
  const Sizable = {
3242
3274
  string: {
@@ -3344,7 +3376,7 @@ function en_default() {
3344
3376
  return { localeError: error$1() };
3345
3377
  }
3346
3378
  //#endregion
3347
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
3379
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js
3348
3380
  var _a;
3349
3381
  var $ZodRegistry = class {
3350
3382
  constructor() {
@@ -3391,7 +3423,7 @@ function registry() {
3391
3423
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
3392
3424
  var globalRegistry = globalThis.__zod_globalRegistry;
3393
3425
  //#endregion
3394
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
3426
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js
3395
3427
  function snapshotChecks(def) {
3396
3428
  if (def.checks) def.checks = [...def.checks];
3397
3429
  return def;
@@ -3907,7 +3939,7 @@ function _check(fn, params) {
3907
3939
  return ch;
3908
3940
  }
3909
3941
  //#endregion
3910
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
3942
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
3911
3943
  function assignProps(target, ...sources) {
3912
3944
  for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
3913
3945
  return target;
@@ -4351,7 +4383,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
4351
4383
  return finalize(ctx, schema);
4352
4384
  };
4353
4385
  //#endregion
4354
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
4386
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
4355
4387
  var narrowMin = (agg, key, value) => {
4356
4388
  if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
4357
4389
  };
@@ -4806,7 +4838,7 @@ var optionalProcessor = (schema, ctx, _json, params) => {
4806
4838
  seen.ref = def.innerType;
4807
4839
  };
4808
4840
  //#endregion
4809
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
4841
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/errors.js
4810
4842
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
4811
4843
  function _lazyMethod(proto, key, make) {
4812
4844
  Object.defineProperty(proto, key, {
@@ -4856,7 +4888,7 @@ var initializer = (inst, issues) => {
4856
4888
  };
4857
4889
  var ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
4858
4890
  //#endregion
4859
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
4891
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/parse.js
4860
4892
  var parse = /* @__PURE__ */ _parse(ZodRealError);
4861
4893
  var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
4862
4894
  var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -4870,7 +4902,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
4870
4902
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
4871
4903
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
4872
4904
  //#endregion
4873
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
4905
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
4874
4906
  function _ensureDefaultLocale() {
4875
4907
  if (!globalConfig.localeError) config(en_default());
4876
4908
  }
@@ -5754,7 +5786,7 @@ function superRefine(fn, params) {
5754
5786
  return /* @__PURE__ */ _superRefine(fn, params);
5755
5787
  }
5756
5788
  //#endregion
5757
- //#region ../../node_modules/.pnpm/zod-package-json@2.1.0_zod@4.6.5/node_modules/zod-package-json/dist/package-json.js
5789
+ //#region ../../node_modules/.pnpm/zod-package-json@2.1.0_zod@4.6.7/node_modules/zod-package-json/dist/package-json.js
5758
5790
  var Bugs = union([string$1(), object({
5759
5791
  url: optional(string$1()),
5760
5792
  email: optional(string$1())
@@ -6122,7 +6154,7 @@ var QuickLRU = class extends Map {
6122
6154
  }
6123
6155
  };
6124
6156
  //#endregion
6125
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.5/node_modules/query-registry/dist/cache.js
6157
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/cache.js
6126
6158
  /**
6127
6159
  Internal cache for all requests.
6128
6160
  @see {@link https://github.com/sindresorhus/quick-lru}
@@ -6243,7 +6275,7 @@ var init_builtin_modules = __esmMin((() => {
6243
6275
  ];
6244
6276
  }));
6245
6277
  //#endregion
6246
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.5/node_modules/query-registry/dist/assert-valid-package-name.js
6278
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/assert-valid-package-name.js
6247
6279
  var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
6248
6280
  var builtins = (init_builtin_modules(), __toCommonJS(builtin_modules_exports).default);
6249
6281
  var scopedPackagePattern = /* @__PURE__ */ new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
@@ -6309,7 +6341,7 @@ function assertValidPackageName(name) {
6309
6341
  } });
6310
6342
  }
6311
6343
  //#endregion
6312
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.5/node_modules/query-registry/dist/dist-tags.js
6344
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/dist-tags.js
6313
6345
  /**
6314
6346
  `DistTags` describes the mapping of distribution tags to semver version numbers
6315
6347
  (e.g., `{ "latest": "1.0.0" }`).
@@ -6325,7 +6357,7 @@ var DistTags = object({
6325
6357
  dev: string$1().optional()
6326
6358
  }).catchall(string$1());
6327
6359
  //#endregion
6328
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.5/node_modules/query-registry/dist/fetch-data.js
6360
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/fetch-data.js
6329
6361
  async function fetchData(schema, url, headers) {
6330
6362
  const cacheKey = JSON.stringify({
6331
6363
  url,
@@ -6338,11 +6370,11 @@ async function fetchData(schema, url, headers) {
6338
6370
  return schema.parse(json);
6339
6371
  }
6340
6372
  //#endregion
6341
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.5/node_modules/query-registry/dist/npm-registry.js
6373
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/npm-registry.js
6342
6374
  /** Base URL for the {@link https://registry.npmjs.org | npm registry API}. */
6343
6375
  var npmRegistryUrl = "https://registry.npmjs.org";
6344
6376
  //#endregion
6345
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.5/node_modules/query-registry/dist/get-package-manifest.js
6377
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/get-package-manifest.js
6346
6378
  /**
6347
6379
  `Dist` describes the distribution metadata generated by the registry.
6348
6380
  @see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist}
@@ -6452,7 +6484,7 @@ async function getPackageManifest(name, versionOrTag = "latest", registry = npmR
6452
6484
  return await fetchData(PackageManifest, urlJoin(registry, name, versionOrTag));
6453
6485
  }
6454
6486
  //#endregion
6455
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.5/node_modules/query-registry/dist/get-abbreviated-packument.js
6487
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/get-abbreviated-packument.js
6456
6488
  var AbbreviatedPackument = object({
6457
6489
  /** Package name. */
6458
6490
  name: string$1(),
@@ -9709,7 +9741,7 @@ ${icons.map(({ aliases, name }) => `- \`${name}\` (aliases: ${aliases.join(", ")
9709
9741
  ...allSkills
9710
9742
  ];
9711
9743
  //#endregion
9712
- //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/mini/schemas.js
9744
+ //#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/schemas.js
9713
9745
  var ZodMiniType = /*@__PURE__*/ $constructor("ZodMiniType", (inst, def) => {
9714
9746
  if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
9715
9747
  $ZodType.init(inst, def);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/modelcontextprotocol",
3
- "version": "0.4.1-dev-20261014112539",
3
+ "version": "0.4.1-dev-20261015132818",
4
4
  "description": "MCP (Model Context Protocol) Server that provide onyx specific tools and resources.",
5
5
  "homepage": "https://onyx.schwarz",
6
6
  "bugs": {
@@ -42,9 +42,9 @@
42
42
  "unified": "^11.0.5",
43
43
  "unplugin-dts": "1.1.2",
44
44
  "vite": "8.3.4",
45
- "vue-component-meta": "3.3.12",
45
+ "vue-component-meta": "3.3.13",
46
46
  "yaml": "^2.9.1",
47
- "zod": "^4.6.5"
47
+ "zod": "^4.6.7"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=20"