@sit-onyx/modelcontextprotocol 0.1.1-dev-20260626083838 → 0.1.1-dev-20260629101020

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 +438 -429
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -17,7 +17,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
17
17
  var __getOwnPropNames = Object.getOwnPropertyNames;
18
18
  var __getProtoOf = Object.getPrototypeOf;
19
19
  var __hasOwnProp = Object.prototype.hasOwnProperty;
20
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
20
+ var __esmMin = (fn, res, err) => () => {
21
+ if (err) throw err[0];
22
+ try {
23
+ return fn && (res = fn(fn = 0)), res;
24
+ } catch (e) {
25
+ throw err = [e], e;
26
+ }
27
+ };
21
28
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
22
29
  var __exportAll = (all, no_symbols) => {
23
30
  let target = {};
@@ -43,7 +50,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
43
50
  enumerable: true
44
51
  }) : target, mod));
45
52
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
53
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
47
54
  var package_default = {
48
55
  name: "@sit-onyx/modelcontextprotocol",
49
56
  version: "0.1.0",
@@ -130,6 +137,36 @@ var cached$1 = (func) => {
130
137
  };
131
138
  };
132
139
  //#endregion
140
+ //#region ../../node_modules/.pnpm/url-join@5.0.0/node_modules/url-join/lib/url-join.js
141
+ function normalize(strArray) {
142
+ var resultArray = [];
143
+ if (strArray.length === 0) return "";
144
+ if (typeof strArray[0] !== "string") throw new TypeError("Url must be a string. Received " + strArray[0]);
145
+ if (strArray[0].match(/^[^/:]+:\/*$/) && strArray.length > 1) strArray[0] = strArray.shift() + strArray[0];
146
+ if (strArray[0].match(/^file:\/\/\//)) strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, "$1:///");
147
+ else strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, "$1://");
148
+ for (var i = 0; i < strArray.length; i++) {
149
+ var component = strArray[i];
150
+ if (typeof component !== "string") throw new TypeError("Url must be a string. Received " + component);
151
+ if (component === "") continue;
152
+ if (i > 0) component = component.replace(/^[\/]+/, "");
153
+ if (i < strArray.length - 1) component = component.replace(/[\/]+$/, "");
154
+ else component = component.replace(/[\/]+$/, "/");
155
+ resultArray.push(component);
156
+ }
157
+ var str = resultArray.join("/");
158
+ str = str.replace(/\/(\?|&|#[^!])/g, "$1");
159
+ var parts = str.split("?");
160
+ str = parts.shift() + (parts.length > 0 ? "?" : "") + parts.join("&");
161
+ return str;
162
+ }
163
+ function urlJoin() {
164
+ var input;
165
+ if (typeof arguments[0] === "object") input = arguments[0];
166
+ else input = [].slice.call(arguments);
167
+ return normalize(input);
168
+ }
169
+ //#endregion
133
170
  //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
134
171
  var _a$1;
135
172
  function $constructor(name, initializer, params) {
@@ -251,7 +288,10 @@ function assignProp(target, prop, value) {
251
288
  }
252
289
  function mergeDefs(...defs) {
253
290
  const mergedDescriptors = {};
254
- for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
291
+ for (const def of defs) {
292
+ const descriptors = Object.getOwnPropertyDescriptors(def);
293
+ Object.assign(mergedDescriptors, descriptors);
294
+ }
255
295
  return Object.defineProperties({}, mergedDescriptors);
256
296
  }
257
297
  function esc(str) {
@@ -573,7 +613,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
573
613
  }, ctx);
574
614
  if (result instanceof Promise) throw new $ZodAsyncError();
575
615
  if (result.issues.length) {
576
- const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
616
+ const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
577
617
  captureStackTrace(e, _params?.callee);
578
618
  throw e;
579
619
  }
@@ -591,7 +631,7 @@ var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
591
631
  }, ctx);
592
632
  if (result instanceof Promise) result = await result;
593
633
  if (result.issues.length) {
594
- const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
634
+ const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
595
635
  captureStackTrace(e, params?.callee);
596
636
  throw e;
597
637
  }
@@ -1554,7 +1594,7 @@ var $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
1554
1594
  var $ZodNull = /*@__PURE__*/ $constructor("$ZodNull", (inst, def) => {
1555
1595
  $ZodType.init(inst, def);
1556
1596
  inst._zod.pattern = _null$2;
1557
- inst._zod.values = new Set([null]);
1597
+ inst._zod.values = /* @__PURE__ */ new Set([null]);
1558
1598
  inst._zod.parse = (payload, _ctx) => {
1559
1599
  const input = payload.value;
1560
1600
  if (input === null) return payload;
@@ -1701,13 +1741,13 @@ var $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
1701
1741
  }
1702
1742
  return propValues;
1703
1743
  });
1704
- const isObject$1 = isObject;
1744
+ const isObject$2 = isObject;
1705
1745
  const catchall = def.catchall;
1706
1746
  let value;
1707
1747
  inst._zod.parse = (payload, ctx) => {
1708
1748
  value ?? (value = _normalized.value);
1709
1749
  const input = payload.value;
1710
- if (!isObject$1(input)) {
1750
+ if (!isObject$2(input)) {
1711
1751
  payload.issues.push({
1712
1752
  expected: "object",
1713
1753
  code: "invalid_type",
@@ -1830,7 +1870,7 @@ var $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
1830
1870
  return (payload, ctx) => fn(shape, payload, ctx);
1831
1871
  };
1832
1872
  let fastpass;
1833
- const isObject$2 = isObject;
1873
+ const isObject$1 = isObject;
1834
1874
  const jit = !globalConfig.jitless;
1835
1875
  const fastEnabled = jit && allowsEval.value;
1836
1876
  const catchall = def.catchall;
@@ -1838,7 +1878,7 @@ var $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
1838
1878
  inst._zod.parse = (payload, ctx) => {
1839
1879
  value ?? (value = _normalized.value);
1840
1880
  const input = payload.value;
1841
- if (!isObject$2(input)) {
1881
+ if (!isObject$1(input)) {
1842
1882
  payload.issues.push({
1843
1883
  expected: "object",
1844
1884
  code: "invalid_type",
@@ -2184,7 +2224,7 @@ var $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
2184
2224
  inst._zod.optin = "optional";
2185
2225
  inst._zod.optout = "optional";
2186
2226
  defineLazy(inst._zod, "values", () => {
2187
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, void 0]) : void 0;
2227
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, void 0]) : void 0;
2188
2228
  });
2189
2229
  defineLazy(inst._zod, "pattern", () => {
2190
2230
  const pattern = def.innerType._zod.pattern;
@@ -2218,7 +2258,7 @@ var $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
2218
2258
  return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
2219
2259
  });
2220
2260
  defineLazy(inst._zod, "values", () => {
2221
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
2261
+ return def.innerType._zod.values ? /* @__PURE__ */ new Set([...def.innerType._zod.values, null]) : void 0;
2222
2262
  });
2223
2263
  inst._zod.parse = (payload, ctx) => {
2224
2264
  if (payload.value === null) return payload;
@@ -4380,220 +4420,219 @@ function superRefine(fn, params) {
4380
4420
  return /* @__PURE__ */ _superRefine(fn, params);
4381
4421
  }
4382
4422
  //#endregion
4383
- //#region ../../node_modules/.pnpm/zod-package-json@2.1.0_zod@4.4.3/node_modules/zod-package-json/dist/package-json.js
4384
- var Bugs = union([string$1(), object({
4385
- url: optional(string$1()),
4386
- email: optional(string$1())
4387
- })]);
4388
- var Funding = union([
4389
- string$1(),
4390
- object({
4391
- url: string$1(),
4392
- type: optional(string$1())
4393
- }),
4394
- array(union([string$1(), object({
4395
- url: string$1(),
4396
- type: optional(string$1())
4397
- })]))
4398
- ]);
4399
- var Person = union([string$1(), object({
4400
- name: string$1(),
4401
- email: optional(string$1()),
4402
- url: optional(string$1())
4403
- })]);
4404
- var Repository = union([string$1(), object({
4405
- /** Repository type (e.g., `git`). */
4406
- type: string$1(),
4407
- /** Machine-readable repository URL (e.g., `https://github.com/user/repo.git`). */
4408
- url: string$1(),
4409
- /** Directory in a monorepo where the package's source code is located. */
4410
- directory: optional(string$1())
4411
- })]);
4412
- var DevEngineDependency = object({
4413
- name: string$1(),
4414
- version: optional(string$1()),
4415
- onFail: optional(literal([
4416
- "ignore",
4417
- "warn",
4418
- "error"
4419
- ]))
4420
- });
4421
- var DevEngineDependencies = union([DevEngineDependency, array(DevEngineDependency)]);
4422
- var DevEngines = object({
4423
- cpu: optional(DevEngineDependencies),
4424
- os: optional(DevEngineDependencies),
4425
- libc: optional(DevEngineDependencies),
4426
- runtime: optional(DevEngineDependencies),
4427
- packageManager: optional(DevEngineDependencies)
4428
- });
4429
- var PackageJson = looseObject({
4430
- /** Package name. */
4431
- name: string$1(),
4432
- /** Package semver version number. */
4433
- version: string$1(),
4434
- /** Description for the package. */
4435
- description: optional(string$1()),
4436
- /** List of keywords for searching the package. */
4437
- keywords: optional(array(string$1())),
4438
- /** URL of the package's homepage. */
4439
- homepage: optional(string$1()),
4440
- /** Issue tracker for the package. */
4441
- bugs: optional(Bugs),
4442
- /** SPDX license expression or a custom license. */
4443
- license: optional(string$1()),
4444
- /** Author of the package. */
4445
- author: optional(Person),
4446
- /** Contributors to the package. */
4447
- contributors: optional(array(Person)),
4448
- /** Maintainers of the package. */
4449
- maintainers: optional(array(Person)),
4450
- /** Funding options for the package. */
4451
- funding: optional(Funding),
4452
- /** File patterns for files to be included when publishing the package. */
4453
- files: optional(array(string$1())),
4454
- /** Package exports. @see {@link https://nodejs.org/api/packages.html#exports} */
4455
- exports: optional(union([
4456
- _null(),
4457
- string$1(),
4458
- array(string$1()),
4459
- record(string$1(), unknown())
4460
- ])),
4461
- /** Type for all the `.js` files in the package, usually `module`. */
4462
- type: optional(literal(["module", "commonjs"])),
4463
- /** Main entry point for the package, usually CommonJS. */
4464
- main: optional(string$1()),
4465
- /**
4466
- Main entry point for the package when used in a browser environment.
4467
- @see {@link https://docs.npmjs.com/cli/v10/configuring-npm/package-json#browser}
4468
- @see {@link https://gist.github.com/defunctzombie/4339901/49493836fb873ddaa4b8a7aa0ef2352119f69211}
4469
- */
4470
- browser: optional(union([string$1(), record(string$1(), union([string$1(), boolean()]))])),
4471
- /** Executable files. */
4472
- bin: optional(union([string$1(), record(string$1(), string$1())])),
4473
- /** Documentation to be used with the `man` command. */
4474
- man: optional(union([string$1(), array(string$1())])),
4475
- /** Directories in the package. */
4476
- directories: optional(record(string$1(), string$1())),
4477
- /** Repository for the package's source code. */
4478
- repository: optional(Repository),
4479
- /** Scripts used in the package. */
4480
- scripts: optional(record(string$1(), string$1())),
4481
- /** Configuration values for scripts. */
4482
- config: optional(record(string$1(), unknown())),
4483
- /** Production dependencies. */
4484
- dependencies: optional(record(string$1(), string$1())),
4485
- /** Development dependencies. */
4486
- devDependencies: optional(record(string$1(), string$1())),
4487
- /** Peer dependencies. */
4488
- peerDependencies: optional(record(string$1(), string$1())),
4489
- /** Metadata about peer dependencies. */
4490
- peerDependenciesMeta: optional(record(string$1(), object({ optional: boolean() }))),
4491
- /** Dependencies bundled with the package. */
4492
- bundleDependencies: optional(union([boolean(), array(string$1())])),
4493
- /** Dependencies bundled with the package (equivalent to `bundleDependencies`). */
4494
- bundledDependencies: optional(union([boolean(), array(string$1())])),
4495
- /** Optional dependencies. */
4496
- optionalDependencies: optional(record(string$1(), string$1())),
4497
- /** Overrides for dependency resolution using npm. */
4498
- overrides: optional(record(string$1(), unknown())),
4499
- /** Runtime systems supported by the package. */
4500
- engines: optional(record(string$1(), string$1())),
4501
- /** Operating systems supported by the package. */
4502
- os: optional(array(string$1())),
4503
- /** CPU architectures supported by the package. */
4504
- cpu: optional(array(string$1())),
4505
- /** Version of libc required to build or run this package on Linux. */
4506
- libc: optional(string$1()),
4507
- /** Tooling required to develop the package. */
4508
- devEngines: optional(DevEngines),
4509
- /** True if the package should not be published. */
4510
- private: optional(boolean()),
4511
- /** Configuration values used at publishing time. */
4512
- publishConfig: optional(record(string$1(), unknown())),
4513
- /** File patterns for locating local workspaces. */
4514
- workspaces: optional(array(string$1())),
4515
- /** Deprecation message. */
4516
- deprecated: optional(string$1()),
4517
- /** Main ESM entry point for the package. */
4518
- module: optional(string$1()),
4519
- /** Main TypeScript declaration file. */
4520
- types: optional(string$1()),
4521
- /** Main TypeScript declaration file (equivalent to `types`). */
4522
- typings: optional(string$1()),
4523
- /**
4524
- TypeScript types resolutions.
4525
- @see {@link https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#version-selection-with-typesversions}
4526
- */
4527
- typesVersions: optional(record(string$1(), record(string$1(), array(string$1())))),
4528
- /**
4529
- Corepack package manager.
4530
- @see {@link https://nodejs.org/api/corepack.html}
4531
- */
4532
- packageManager: optional(string$1()),
4533
- /**
4534
- False if importing modules from the package does not cause side effects.
4535
- True or a list of file patterns if importing modules from the package causes side effects.
4536
- @see {@link https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free}
4537
- */
4538
- sideEffects: optional(union([boolean(), array(string$1())])),
4539
- /**
4540
- Imports map.
4541
- @see {@link https://nodejs.org/api/packages.html#imports}
4542
- */
4543
- imports: optional(record(string$1(), unknown()))
4544
- });
4545
- //#endregion
4546
- //#region ../../node_modules/.pnpm/quick-lru@7.3.0/node_modules/quick-lru/index.js
4547
- var QuickLRU = class extends Map {
4548
- #size = 0;
4549
- #cache = /* @__PURE__ */ new Map();
4550
- #oldCache = /* @__PURE__ */ new Map();
4551
- #maxSize;
4552
- #maxAge;
4553
- #onEviction;
4554
- constructor(options = {}) {
4555
- super();
4556
- if (!(options.maxSize && options.maxSize > 0)) throw new TypeError("`maxSize` must be a number greater than 0");
4557
- if (typeof options.maxAge === "number" && options.maxAge === 0) throw new TypeError("`maxAge` must be a number greater than 0");
4558
- this.#maxSize = options.maxSize;
4559
- this.#maxAge = options.maxAge || Number.POSITIVE_INFINITY;
4560
- this.#onEviction = options.onEviction;
4561
- }
4562
- get __oldCache() {
4563
- return this.#oldCache;
4564
- }
4565
- #emitEvictions(cache) {
4566
- if (typeof this.#onEviction !== "function") return;
4567
- for (const [key, item] of cache) this.#onEviction(key, item.value);
4568
- }
4569
- #deleteIfExpired(key, item) {
4570
- if (typeof item.expiry === "number" && item.expiry <= Date.now()) {
4571
- if (typeof this.#onEviction === "function") this.#onEviction(key, item.value);
4572
- return this.delete(key);
4573
- }
4574
- return false;
4575
- }
4576
- #getOrDeleteIfExpired(key, item) {
4577
- if (this.#deleteIfExpired(key, item) === false) return item.value;
4578
- }
4579
- #getItemValue(key, item) {
4580
- return item.expiry ? this.#getOrDeleteIfExpired(key, item) : item.value;
4581
- }
4582
- #peek(key, cache) {
4583
- const item = cache.get(key);
4584
- return this.#getItemValue(key, item);
4585
- }
4586
- #set(key, value) {
4587
- this.#cache.set(key, value);
4588
- this.#size++;
4589
- if (this.#size >= this.#maxSize) {
4590
- this.#size = 0;
4591
- this.#emitEvictions(this.#oldCache);
4592
- this.#oldCache = this.#cache;
4593
- this.#cache = /* @__PURE__ */ new Map();
4594
- }
4595
- }
4596
- #moveToRecent(key, item) {
4423
+ //#region ../../node_modules/.pnpm/validate-npm-package-name@7.0.2/node_modules/validate-npm-package-name/lib/builtin-modules.json
4424
+ var builtin_modules_exports = /* @__PURE__ */ __exportAll({ default: () => builtin_modules_default });
4425
+ var builtin_modules_default;
4426
+ var init_builtin_modules = __esmMin((() => {
4427
+ builtin_modules_default = [
4428
+ "_http_agent",
4429
+ "_http_client",
4430
+ "_http_common",
4431
+ "_http_incoming",
4432
+ "_http_outgoing",
4433
+ "_http_server",
4434
+ "_stream_duplex",
4435
+ "_stream_passthrough",
4436
+ "_stream_readable",
4437
+ "_stream_transform",
4438
+ "_stream_wrap",
4439
+ "_stream_writable",
4440
+ "_tls_common",
4441
+ "_tls_wrap",
4442
+ "assert",
4443
+ "assert/strict",
4444
+ "async_hooks",
4445
+ "buffer",
4446
+ "child_process",
4447
+ "cluster",
4448
+ "console",
4449
+ "constants",
4450
+ "crypto",
4451
+ "dgram",
4452
+ "diagnostics_channel",
4453
+ "dns",
4454
+ "dns/promises",
4455
+ "domain",
4456
+ "events",
4457
+ "fs",
4458
+ "fs/promises",
4459
+ "http",
4460
+ "http2",
4461
+ "https",
4462
+ "inspector",
4463
+ "inspector/promises",
4464
+ "module",
4465
+ "net",
4466
+ "os",
4467
+ "path",
4468
+ "path/posix",
4469
+ "path/win32",
4470
+ "perf_hooks",
4471
+ "process",
4472
+ "punycode",
4473
+ "querystring",
4474
+ "readline",
4475
+ "readline/promises",
4476
+ "repl",
4477
+ "stream",
4478
+ "stream/consumers",
4479
+ "stream/promises",
4480
+ "stream/web",
4481
+ "string_decoder",
4482
+ "sys",
4483
+ "timers",
4484
+ "timers/promises",
4485
+ "tls",
4486
+ "trace_events",
4487
+ "tty",
4488
+ "url",
4489
+ "util",
4490
+ "util/types",
4491
+ "v8",
4492
+ "vm",
4493
+ "wasi",
4494
+ "worker_threads",
4495
+ "zlib",
4496
+ "node:sea",
4497
+ "node:sqlite",
4498
+ "node:test",
4499
+ "node:test/reporters"
4500
+ ];
4501
+ }));
4502
+ //#endregion
4503
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.4.3/node_modules/query-registry/dist/assert-valid-package-name.js
4504
+ var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
4505
+ var builtins = (init_builtin_modules(), __toCommonJS(builtin_modules_exports).default);
4506
+ var scopedPackagePattern = /* @__PURE__ */ new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
4507
+ var exclusionList = ["node_modules", "favicon.ico"];
4508
+ function validate(name) {
4509
+ var warnings = [];
4510
+ var errors = [];
4511
+ if (name === null) {
4512
+ errors.push("name cannot be null");
4513
+ return done(warnings, errors);
4514
+ }
4515
+ if (name === void 0) {
4516
+ errors.push("name cannot be undefined");
4517
+ return done(warnings, errors);
4518
+ }
4519
+ if (typeof name !== "string") {
4520
+ errors.push("name must be a string");
4521
+ return done(warnings, errors);
4522
+ }
4523
+ if (!name.length) errors.push("name length must be greater than zero");
4524
+ if (name.startsWith(".")) errors.push("name cannot start with a period");
4525
+ if (name.startsWith("-")) errors.push("name cannot start with a hyphen");
4526
+ if (name.match(/^_/)) errors.push("name cannot start with an underscore");
4527
+ if (name.trim() !== name) errors.push("name cannot contain leading or trailing spaces");
4528
+ exclusionList.forEach(function(excludedName) {
4529
+ if (name.toLowerCase() === excludedName) errors.push(excludedName + " is not a valid package name");
4530
+ });
4531
+ if (builtins.includes(name.toLowerCase())) warnings.push(name + " is a core module name");
4532
+ if (name.length > 214) warnings.push("name can no longer contain more than 214 characters");
4533
+ if (name.toLowerCase() !== name) warnings.push("name can no longer contain capital letters");
4534
+ if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) warnings.push("name can no longer contain special characters (\"~'!()*\")");
4535
+ if (encodeURIComponent(name) !== name) {
4536
+ var nameMatch = name.match(scopedPackagePattern);
4537
+ if (nameMatch) {
4538
+ var user = nameMatch[1];
4539
+ var pkg = nameMatch[2];
4540
+ if (pkg.startsWith(".")) errors.push("name cannot start with a period");
4541
+ if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) return done(warnings, errors);
4542
+ }
4543
+ errors.push("name can only contain URL-friendly characters");
4544
+ }
4545
+ return done(warnings, errors);
4546
+ }
4547
+ var done = function(warnings, errors) {
4548
+ var result = {
4549
+ validForNewPackages: errors.length === 0 && warnings.length === 0,
4550
+ validForOldPackages: errors.length === 0,
4551
+ warnings,
4552
+ errors
4553
+ };
4554
+ if (!result.warnings.length) delete result.warnings;
4555
+ if (!result.errors.length) delete result.errors;
4556
+ return result;
4557
+ };
4558
+ module.exports = validate;
4559
+ })))(), 1);
4560
+ function assertValidPackageName(name) {
4561
+ const { validForOldPackages, validForNewPackages, warnings, errors } = (0, import_lib.default)(name);
4562
+ if (!(validForOldPackages || validForNewPackages)) throw new Error("invalid package name", { cause: {
4563
+ name,
4564
+ warnings,
4565
+ errors
4566
+ } });
4567
+ }
4568
+ //#endregion
4569
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.4.3/node_modules/query-registry/dist/dist-tags.js
4570
+ /**
4571
+ `DistTags` describes the mapping of distribution tags to semver version numbers
4572
+ (e.g., `{ "latest": "1.0.0" }`).
4573
+ */
4574
+ var DistTags = object({
4575
+ /** Latest semver version number. */
4576
+ latest: string$1(),
4577
+ next: string$1().optional(),
4578
+ alpha: string$1().optional(),
4579
+ beta: string$1().optional(),
4580
+ rc: string$1().optional(),
4581
+ canary: string$1().optional(),
4582
+ dev: string$1().optional()
4583
+ }).catchall(string$1());
4584
+ //#endregion
4585
+ //#region ../../node_modules/.pnpm/quick-lru@7.3.0/node_modules/quick-lru/index.js
4586
+ var QuickLRU = class extends Map {
4587
+ #size = 0;
4588
+ #cache = /* @__PURE__ */ new Map();
4589
+ #oldCache = /* @__PURE__ */ new Map();
4590
+ #maxSize;
4591
+ #maxAge;
4592
+ #onEviction;
4593
+ constructor(options = {}) {
4594
+ super();
4595
+ if (!(options.maxSize && options.maxSize > 0)) throw new TypeError("`maxSize` must be a number greater than 0");
4596
+ if (typeof options.maxAge === "number" && options.maxAge === 0) throw new TypeError("`maxAge` must be a number greater than 0");
4597
+ this.#maxSize = options.maxSize;
4598
+ this.#maxAge = options.maxAge || Number.POSITIVE_INFINITY;
4599
+ this.#onEviction = options.onEviction;
4600
+ }
4601
+ get __oldCache() {
4602
+ return this.#oldCache;
4603
+ }
4604
+ #emitEvictions(cache) {
4605
+ if (typeof this.#onEviction !== "function") return;
4606
+ for (const [key, item] of cache) this.#onEviction(key, item.value);
4607
+ }
4608
+ #deleteIfExpired(key, item) {
4609
+ if (typeof item.expiry === "number" && item.expiry <= Date.now()) {
4610
+ if (typeof this.#onEviction === "function") this.#onEviction(key, item.value);
4611
+ return this.delete(key);
4612
+ }
4613
+ return false;
4614
+ }
4615
+ #getOrDeleteIfExpired(key, item) {
4616
+ if (this.#deleteIfExpired(key, item) === false) return item.value;
4617
+ }
4618
+ #getItemValue(key, item) {
4619
+ return item.expiry ? this.#getOrDeleteIfExpired(key, item) : item.value;
4620
+ }
4621
+ #peek(key, cache) {
4622
+ const item = cache.get(key);
4623
+ return this.#getItemValue(key, item);
4624
+ }
4625
+ #set(key, value) {
4626
+ this.#cache.set(key, value);
4627
+ this.#size++;
4628
+ if (this.#size >= this.#maxSize) {
4629
+ this.#size = 0;
4630
+ this.#emitEvictions(this.#oldCache);
4631
+ this.#oldCache = this.#cache;
4632
+ this.#cache = /* @__PURE__ */ new Map();
4633
+ }
4634
+ }
4635
+ #moveToRecent(key, item) {
4597
4636
  this.#oldCache.delete(key);
4598
4637
  this.#set(key, item);
4599
4638
  }
@@ -4759,210 +4798,181 @@ var cache = new QuickLRU({
4759
4798
  maxAge: 300 * 1e3
4760
4799
  });
4761
4800
  //#endregion
4762
- //#region ../../node_modules/.pnpm/url-join@5.0.0/node_modules/url-join/lib/url-join.js
4763
- function normalize(strArray) {
4764
- var resultArray = [];
4765
- if (strArray.length === 0) return "";
4766
- if (typeof strArray[0] !== "string") throw new TypeError("Url must be a string. Received " + strArray[0]);
4767
- if (strArray[0].match(/^[^/:]+:\/*$/) && strArray.length > 1) strArray[0] = strArray.shift() + strArray[0];
4768
- if (strArray[0].match(/^file:\/\/\//)) strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, "$1:///");
4769
- else strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, "$1://");
4770
- for (var i = 0; i < strArray.length; i++) {
4771
- var component = strArray[i];
4772
- if (typeof component !== "string") throw new TypeError("Url must be a string. Received " + component);
4773
- if (component === "") continue;
4774
- if (i > 0) component = component.replace(/^[\/]+/, "");
4775
- if (i < strArray.length - 1) component = component.replace(/[\/]+$/, "");
4776
- else component = component.replace(/[\/]+$/, "/");
4777
- resultArray.push(component);
4778
- }
4779
- var str = resultArray.join("/");
4780
- str = str.replace(/\/(\?|&|#[^!])/g, "$1");
4781
- var parts = str.split("?");
4782
- str = parts.shift() + (parts.length > 0 ? "?" : "") + parts.join("&");
4783
- return str;
4784
- }
4785
- function urlJoin() {
4786
- var input;
4787
- if (typeof arguments[0] === "object") input = arguments[0];
4788
- else input = [].slice.call(arguments);
4789
- return normalize(input);
4801
+ //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.4.3/node_modules/query-registry/dist/fetch-data.js
4802
+ async function fetchData(schema, url, headers) {
4803
+ const cacheKey = JSON.stringify({
4804
+ url,
4805
+ headers
4806
+ });
4807
+ const cachedJson = cache.get(cacheKey);
4808
+ if (cachedJson) return schema.parse(cachedJson);
4809
+ const json = await (await fetch(url, { headers })).json();
4810
+ cache.set(cacheKey, json);
4811
+ return schema.parse(json);
4790
4812
  }
4791
4813
  //#endregion
4792
- //#region ../../node_modules/.pnpm/validate-npm-package-name@7.0.2/node_modules/validate-npm-package-name/lib/builtin-modules.json
4793
- var builtin_modules_exports = /* @__PURE__ */ __exportAll({ default: () => builtin_modules_default });
4794
- var builtin_modules_default;
4795
- var init_builtin_modules = __esmMin((() => {
4796
- builtin_modules_default = [
4797
- "_http_agent",
4798
- "_http_client",
4799
- "_http_common",
4800
- "_http_incoming",
4801
- "_http_outgoing",
4802
- "_http_server",
4803
- "_stream_duplex",
4804
- "_stream_passthrough",
4805
- "_stream_readable",
4806
- "_stream_transform",
4807
- "_stream_wrap",
4808
- "_stream_writable",
4809
- "_tls_common",
4810
- "_tls_wrap",
4811
- "assert",
4812
- "assert/strict",
4813
- "async_hooks",
4814
- "buffer",
4815
- "child_process",
4816
- "cluster",
4817
- "console",
4818
- "constants",
4819
- "crypto",
4820
- "dgram",
4821
- "diagnostics_channel",
4822
- "dns",
4823
- "dns/promises",
4824
- "domain",
4825
- "events",
4826
- "fs",
4827
- "fs/promises",
4828
- "http",
4829
- "http2",
4830
- "https",
4831
- "inspector",
4832
- "inspector/promises",
4833
- "module",
4834
- "net",
4835
- "os",
4836
- "path",
4837
- "path/posix",
4838
- "path/win32",
4839
- "perf_hooks",
4840
- "process",
4841
- "punycode",
4842
- "querystring",
4843
- "readline",
4844
- "readline/promises",
4845
- "repl",
4846
- "stream",
4847
- "stream/consumers",
4848
- "stream/promises",
4849
- "stream/web",
4850
- "string_decoder",
4851
- "sys",
4852
- "timers",
4853
- "timers/promises",
4854
- "tls",
4855
- "trace_events",
4856
- "tty",
4857
- "url",
4858
- "util",
4859
- "util/types",
4860
- "v8",
4861
- "vm",
4862
- "wasi",
4863
- "worker_threads",
4864
- "zlib",
4865
- "node:sea",
4866
- "node:sqlite",
4867
- "node:test",
4868
- "node:test/reporters"
4869
- ];
4870
- }));
4871
- //#endregion
4872
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.4.3/node_modules/query-registry/dist/assert-valid-package-name.js
4873
- var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
4874
- var builtins = (init_builtin_modules(), __toCommonJS(builtin_modules_exports).default);
4875
- var scopedPackagePattern = /* @__PURE__ */ new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
4876
- var exclusionList = ["node_modules", "favicon.ico"];
4877
- function validate(name) {
4878
- var warnings = [];
4879
- var errors = [];
4880
- if (name === null) {
4881
- errors.push("name cannot be null");
4882
- return done(warnings, errors);
4883
- }
4884
- if (name === void 0) {
4885
- errors.push("name cannot be undefined");
4886
- return done(warnings, errors);
4887
- }
4888
- if (typeof name !== "string") {
4889
- errors.push("name must be a string");
4890
- return done(warnings, errors);
4891
- }
4892
- if (!name.length) errors.push("name length must be greater than zero");
4893
- if (name.startsWith(".")) errors.push("name cannot start with a period");
4894
- if (name.startsWith("-")) errors.push("name cannot start with a hyphen");
4895
- if (name.match(/^_/)) errors.push("name cannot start with an underscore");
4896
- if (name.trim() !== name) errors.push("name cannot contain leading or trailing spaces");
4897
- exclusionList.forEach(function(excludedName) {
4898
- if (name.toLowerCase() === excludedName) errors.push(excludedName + " is not a valid package name");
4899
- });
4900
- if (builtins.includes(name.toLowerCase())) warnings.push(name + " is a core module name");
4901
- if (name.length > 214) warnings.push("name can no longer contain more than 214 characters");
4902
- if (name.toLowerCase() !== name) warnings.push("name can no longer contain capital letters");
4903
- if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) warnings.push("name can no longer contain special characters (\"~'!()*\")");
4904
- if (encodeURIComponent(name) !== name) {
4905
- var nameMatch = name.match(scopedPackagePattern);
4906
- if (nameMatch) {
4907
- var user = nameMatch[1];
4908
- var pkg = nameMatch[2];
4909
- if (pkg.startsWith(".")) errors.push("name cannot start with a period");
4910
- if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) return done(warnings, errors);
4911
- }
4912
- errors.push("name can only contain URL-friendly characters");
4913
- }
4914
- return done(warnings, errors);
4915
- }
4916
- var done = function(warnings, errors) {
4917
- var result = {
4918
- validForNewPackages: errors.length === 0 && warnings.length === 0,
4919
- validForOldPackages: errors.length === 0,
4920
- warnings,
4921
- errors
4922
- };
4923
- if (!result.warnings.length) delete result.warnings;
4924
- if (!result.errors.length) delete result.errors;
4925
- return result;
4926
- };
4927
- module.exports = validate;
4928
- })))(), 1);
4929
- function assertValidPackageName(name) {
4930
- const { validForOldPackages, validForNewPackages, warnings, errors } = (0, import_lib.default)(name);
4931
- if (!(validForOldPackages || validForNewPackages)) throw new Error("invalid package name", { cause: {
4932
- name,
4933
- warnings,
4934
- errors
4935
- } });
4936
- }
4937
- //#endregion
4938
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.4.3/node_modules/query-registry/dist/dist-tags.js
4939
- /**
4940
- `DistTags` describes the mapping of distribution tags to semver version numbers
4941
- (e.g., `{ "latest": "1.0.0" }`).
4942
- */
4943
- var DistTags = object({
4944
- /** Latest semver version number. */
4945
- latest: string$1(),
4946
- next: string$1().optional(),
4947
- alpha: string$1().optional(),
4948
- beta: string$1().optional(),
4949
- rc: string$1().optional(),
4950
- canary: string$1().optional(),
4951
- dev: string$1().optional()
4952
- }).catchall(string$1());
4953
- //#endregion
4954
- //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.4.3/node_modules/query-registry/dist/fetch-data.js
4955
- async function fetchData(schema, url, headers) {
4956
- const cacheKey = JSON.stringify({
4957
- url,
4958
- headers
4959
- });
4960
- const cachedJson = cache.get(cacheKey);
4961
- if (cachedJson) return schema.parse(cachedJson);
4962
- const json = await (await fetch(url, { headers })).json();
4963
- cache.set(cacheKey, json);
4964
- return schema.parse(json);
4965
- }
4814
+ //#region ../../node_modules/.pnpm/zod-package-json@2.1.0_zod@4.4.3/node_modules/zod-package-json/dist/package-json.js
4815
+ var Bugs = union([string$1(), object({
4816
+ url: optional(string$1()),
4817
+ email: optional(string$1())
4818
+ })]);
4819
+ var Funding = union([
4820
+ string$1(),
4821
+ object({
4822
+ url: string$1(),
4823
+ type: optional(string$1())
4824
+ }),
4825
+ array(union([string$1(), object({
4826
+ url: string$1(),
4827
+ type: optional(string$1())
4828
+ })]))
4829
+ ]);
4830
+ var Person = union([string$1(), object({
4831
+ name: string$1(),
4832
+ email: optional(string$1()),
4833
+ url: optional(string$1())
4834
+ })]);
4835
+ var Repository = union([string$1(), object({
4836
+ /** Repository type (e.g., `git`). */
4837
+ type: string$1(),
4838
+ /** Machine-readable repository URL (e.g., `https://github.com/user/repo.git`). */
4839
+ url: string$1(),
4840
+ /** Directory in a monorepo where the package's source code is located. */
4841
+ directory: optional(string$1())
4842
+ })]);
4843
+ var DevEngineDependency = object({
4844
+ name: string$1(),
4845
+ version: optional(string$1()),
4846
+ onFail: optional(literal([
4847
+ "ignore",
4848
+ "warn",
4849
+ "error"
4850
+ ]))
4851
+ });
4852
+ var DevEngineDependencies = union([DevEngineDependency, array(DevEngineDependency)]);
4853
+ var DevEngines = object({
4854
+ cpu: optional(DevEngineDependencies),
4855
+ os: optional(DevEngineDependencies),
4856
+ libc: optional(DevEngineDependencies),
4857
+ runtime: optional(DevEngineDependencies),
4858
+ packageManager: optional(DevEngineDependencies)
4859
+ });
4860
+ var PackageJson = looseObject({
4861
+ /** Package name. */
4862
+ name: string$1(),
4863
+ /** Package semver version number. */
4864
+ version: string$1(),
4865
+ /** Description for the package. */
4866
+ description: optional(string$1()),
4867
+ /** List of keywords for searching the package. */
4868
+ keywords: optional(array(string$1())),
4869
+ /** URL of the package's homepage. */
4870
+ homepage: optional(string$1()),
4871
+ /** Issue tracker for the package. */
4872
+ bugs: optional(Bugs),
4873
+ /** SPDX license expression or a custom license. */
4874
+ license: optional(string$1()),
4875
+ /** Author of the package. */
4876
+ author: optional(Person),
4877
+ /** Contributors to the package. */
4878
+ contributors: optional(array(Person)),
4879
+ /** Maintainers of the package. */
4880
+ maintainers: optional(array(Person)),
4881
+ /** Funding options for the package. */
4882
+ funding: optional(Funding),
4883
+ /** File patterns for files to be included when publishing the package. */
4884
+ files: optional(array(string$1())),
4885
+ /** Package exports. @see {@link https://nodejs.org/api/packages.html#exports} */
4886
+ exports: optional(union([
4887
+ _null(),
4888
+ string$1(),
4889
+ array(string$1()),
4890
+ record(string$1(), unknown())
4891
+ ])),
4892
+ /** Type for all the `.js` files in the package, usually `module`. */
4893
+ type: optional(literal(["module", "commonjs"])),
4894
+ /** Main entry point for the package, usually CommonJS. */
4895
+ main: optional(string$1()),
4896
+ /**
4897
+ Main entry point for the package when used in a browser environment.
4898
+ @see {@link https://docs.npmjs.com/cli/v10/configuring-npm/package-json#browser}
4899
+ @see {@link https://gist.github.com/defunctzombie/4339901/49493836fb873ddaa4b8a7aa0ef2352119f69211}
4900
+ */
4901
+ browser: optional(union([string$1(), record(string$1(), union([string$1(), boolean()]))])),
4902
+ /** Executable files. */
4903
+ bin: optional(union([string$1(), record(string$1(), string$1())])),
4904
+ /** Documentation to be used with the `man` command. */
4905
+ man: optional(union([string$1(), array(string$1())])),
4906
+ /** Directories in the package. */
4907
+ directories: optional(record(string$1(), string$1())),
4908
+ /** Repository for the package's source code. */
4909
+ repository: optional(Repository),
4910
+ /** Scripts used in the package. */
4911
+ scripts: optional(record(string$1(), string$1())),
4912
+ /** Configuration values for scripts. */
4913
+ config: optional(record(string$1(), unknown())),
4914
+ /** Production dependencies. */
4915
+ dependencies: optional(record(string$1(), string$1())),
4916
+ /** Development dependencies. */
4917
+ devDependencies: optional(record(string$1(), string$1())),
4918
+ /** Peer dependencies. */
4919
+ peerDependencies: optional(record(string$1(), string$1())),
4920
+ /** Metadata about peer dependencies. */
4921
+ peerDependenciesMeta: optional(record(string$1(), object({ optional: boolean() }))),
4922
+ /** Dependencies bundled with the package. */
4923
+ bundleDependencies: optional(union([boolean(), array(string$1())])),
4924
+ /** Dependencies bundled with the package (equivalent to `bundleDependencies`). */
4925
+ bundledDependencies: optional(union([boolean(), array(string$1())])),
4926
+ /** Optional dependencies. */
4927
+ optionalDependencies: optional(record(string$1(), string$1())),
4928
+ /** Overrides for dependency resolution using npm. */
4929
+ overrides: optional(record(string$1(), unknown())),
4930
+ /** Runtime systems supported by the package. */
4931
+ engines: optional(record(string$1(), string$1())),
4932
+ /** Operating systems supported by the package. */
4933
+ os: optional(array(string$1())),
4934
+ /** CPU architectures supported by the package. */
4935
+ cpu: optional(array(string$1())),
4936
+ /** Version of libc required to build or run this package on Linux. */
4937
+ libc: optional(string$1()),
4938
+ /** Tooling required to develop the package. */
4939
+ devEngines: optional(DevEngines),
4940
+ /** True if the package should not be published. */
4941
+ private: optional(boolean()),
4942
+ /** Configuration values used at publishing time. */
4943
+ publishConfig: optional(record(string$1(), unknown())),
4944
+ /** File patterns for locating local workspaces. */
4945
+ workspaces: optional(array(string$1())),
4946
+ /** Deprecation message. */
4947
+ deprecated: optional(string$1()),
4948
+ /** Main ESM entry point for the package. */
4949
+ module: optional(string$1()),
4950
+ /** Main TypeScript declaration file. */
4951
+ types: optional(string$1()),
4952
+ /** Main TypeScript declaration file (equivalent to `types`). */
4953
+ typings: optional(string$1()),
4954
+ /**
4955
+ TypeScript types resolutions.
4956
+ @see {@link https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#version-selection-with-typesversions}
4957
+ */
4958
+ typesVersions: optional(record(string$1(), record(string$1(), array(string$1())))),
4959
+ /**
4960
+ Corepack package manager.
4961
+ @see {@link https://nodejs.org/api/corepack.html}
4962
+ */
4963
+ packageManager: optional(string$1()),
4964
+ /**
4965
+ False if importing modules from the package does not cause side effects.
4966
+ True or a list of file patterns if importing modules from the package causes side effects.
4967
+ @see {@link https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free}
4968
+ */
4969
+ sideEffects: optional(union([boolean(), array(string$1())])),
4970
+ /**
4971
+ Imports map.
4972
+ @see {@link https://nodejs.org/api/packages.html#imports}
4973
+ */
4974
+ imports: optional(record(string$1(), unknown()))
4975
+ });
4966
4976
  //#endregion
4967
4977
  //#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.4.3/node_modules/query-registry/dist/npm-registry.js
4968
4978
  /** Base URL for the {@link https://registry.npmjs.org | npm registry API}. */
@@ -7410,7 +7420,6 @@ var import_tar_stream = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin((
7410
7420
  exports.pack = require_pack();
7411
7421
  })))(), 1);
7412
7422
  var SuccessfulAbort = class {
7413
- data;
7414
7423
  constructor(data) {
7415
7424
  this.data = data;
7416
7425
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/modelcontextprotocol",
3
- "version": "0.1.1-dev-20260626083838",
3
+ "version": "0.1.1-dev-20260629101020",
4
4
  "description": "MCP (Model Context Protocol) Server that provide onyx specific tools and resources.",
5
5
  "homepage": "https://onyx.schwarz",
6
6
  "bugs": {
@@ -31,8 +31,8 @@
31
31
  "query-registry": "^4.3.0",
32
32
  "tar-stream": "^3.2.0",
33
33
  "typescript": "6.0.3",
34
- "unplugin-dts": "1.0.2",
35
- "vite": "8.0.16",
34
+ "unplugin-dts": "1.0.3",
35
+ "vite": "8.1.0",
36
36
  "vue-component-meta": "3.3.5",
37
37
  "zod": "^4.4.3",
38
38
  "@sit-onyx/shared": "^0.1.0"