@sit-onyx/modelcontextprotocol 0.4.1-dev-20261022150304 → 0.4.1-dev-20261024115525
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 +120 -155
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { buffer } from "node:stream/consumers";
|
|
|
12
12
|
import { pipeline } from "node:stream/promises";
|
|
13
13
|
import { createGunzip } from "node:zlib";
|
|
14
14
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
15
|
-
|
|
15
|
+
// \0rolldown/runtime.js
|
|
16
16
|
var __create = Object.create;
|
|
17
17
|
var __defProp = Object.defineProperty;
|
|
18
18
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -27,7 +27,7 @@ var __esmMin = (fn, res, err) => () => {
|
|
|
27
27
|
throw err = [e], e;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
30
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
31
31
|
var __exportAll = (all, no_symbols) => {
|
|
32
32
|
let target = {};
|
|
33
33
|
for (var name in all) __defProp(target, name, {
|
|
@@ -80,12 +80,12 @@ var package_default = {
|
|
|
80
80
|
dependencies: { "@modelcontextprotocol/sdk": "^1.32.1" },
|
|
81
81
|
devDependencies: {
|
|
82
82
|
"@adobe/css-tools": "^4.5.0",
|
|
83
|
-
"@modelcontextprotocol/inspector": "^2.
|
|
83
|
+
"@modelcontextprotocol/inspector": "^2.12.0",
|
|
84
84
|
"@sit-onyx/shared": "workspace:^",
|
|
85
85
|
"@types/mdast": "^4.0.4",
|
|
86
86
|
"@types/node": "catalog:",
|
|
87
87
|
"@types/unist": "^3.0.3",
|
|
88
|
-
"query-registry": "^4.
|
|
88
|
+
"query-registry": "^4.4.0",
|
|
89
89
|
"remark": "^15.0.1",
|
|
90
90
|
"remark-frontmatter": "^5.0.0",
|
|
91
91
|
"remark-parse": "^11.0.0",
|
|
@@ -101,8 +101,7 @@ var package_default = {
|
|
|
101
101
|
},
|
|
102
102
|
engines: { "node": ">=20" }
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
//#region src/resources/skills/onyx-components/SKILL.md
|
|
104
|
+
// src/resources/skills/onyx-components/SKILL.md
|
|
106
105
|
var SKILL_exports$3 = /* @__PURE__ */ __exportAll({
|
|
107
106
|
default: () => SKILL_default$3,
|
|
108
107
|
frontmatter: () => frontmatter$3,
|
|
@@ -115,8 +114,7 @@ var frontmatter$3 = {
|
|
|
115
114
|
"description": "Best practices and dynamic API lookup instructions for Onyx UI components. Use when implementing UI features, forms, or building Vue templates.",
|
|
116
115
|
"license": "Apache-2.0"
|
|
117
116
|
};
|
|
118
|
-
|
|
119
|
-
//#region src/resources/skills/onyx-foundation/SKILL.md
|
|
117
|
+
// src/resources/skills/onyx-foundation/SKILL.md
|
|
120
118
|
var SKILL_exports$2 = /* @__PURE__ */ __exportAll({
|
|
121
119
|
default: () => SKILL_default$2,
|
|
122
120
|
frontmatter: () => frontmatter$2,
|
|
@@ -129,8 +127,7 @@ var frontmatter$2 = {
|
|
|
129
127
|
"description": "Styling foundations, CSS variables, layout grid, breakpoints, and responsive mixins for Onyx. Use when writing custom CSS, designing layouts, or ensuring theme compliance.",
|
|
130
128
|
"license": "Apache-2.0"
|
|
131
129
|
};
|
|
132
|
-
|
|
133
|
-
//#region src/resources/skills/onyx-install-mcp/SKILL.md
|
|
130
|
+
// src/resources/skills/onyx-install-mcp/SKILL.md
|
|
134
131
|
var SKILL_exports$1 = /* @__PURE__ */ __exportAll({
|
|
135
132
|
default: () => SKILL_default$1,
|
|
136
133
|
frontmatter: () => frontmatter$1,
|
|
@@ -143,8 +140,7 @@ var frontmatter$1 = {
|
|
|
143
140
|
"description": "Installation and setup instructions for the local onyx MCP server",
|
|
144
141
|
"license": "Apache-2.0"
|
|
145
142
|
};
|
|
146
|
-
|
|
147
|
-
//#region src/resources/skills/onyx-setup/SKILL.md
|
|
143
|
+
// src/resources/skills/onyx-setup/SKILL.md
|
|
148
144
|
var SKILL_exports = /* @__PURE__ */ __exportAll({
|
|
149
145
|
default: () => SKILL_default,
|
|
150
146
|
frontmatter: () => frontmatter,
|
|
@@ -157,8 +153,7 @@ var frontmatter = {
|
|
|
157
153
|
"description": "One-time configuration, initialization, CSS/font imports, i18n, and layout scaffolding for the Onyx design system. Use when setting up a new project or integrating Vue Router.",
|
|
158
154
|
"license": "Apache-2.0"
|
|
159
155
|
};
|
|
160
|
-
|
|
161
|
-
//#region src/resources/skills.ts
|
|
156
|
+
// src/resources/skills.ts
|
|
162
157
|
var skills = /* #__PURE__ */ Object.assign({
|
|
163
158
|
"./skills/onyx-components/SKILL.md": SKILL_exports$3,
|
|
164
159
|
"./skills/onyx-foundation/SKILL.md": SKILL_exports$2,
|
|
@@ -189,8 +184,7 @@ var writeSkillFiles = async (skillsDirectory) => {
|
|
|
189
184
|
});
|
|
190
185
|
return Promise.all(promises);
|
|
191
186
|
};
|
|
192
|
-
|
|
193
|
-
//#region src/server/http.ts
|
|
187
|
+
// src/server/http.ts
|
|
194
188
|
/**
|
|
195
189
|
* MCP server running as a http server.
|
|
196
190
|
* `HOST` and `PORT` environment variable can be used to change the server settings.
|
|
@@ -211,8 +205,7 @@ var run = async (getServer) => {
|
|
|
211
205
|
httpServer.listen(PORT, HOST);
|
|
212
206
|
log(`MCP http server listening on ${HOST}:${PORT}.`);
|
|
213
207
|
};
|
|
214
|
-
|
|
215
|
-
//#region src/config.ts
|
|
208
|
+
// src/config.ts
|
|
216
209
|
var { version: version$2 } = package_default;
|
|
217
210
|
var USER_AGENT = `onyx-mcp/${version$2}`;
|
|
218
211
|
var REGISTRY_URL = process.env.REGISTRY_URL ?? "https://registry.npmjs.org";
|
|
@@ -221,8 +214,7 @@ var SIT_ONYX_COMPONENT_META_FILE = "package/dist/component-meta.json";
|
|
|
221
214
|
var SIT_ONYX_DESIGN_TOKENS_FILE = "package/src/styles/variables/themes/onyx.css";
|
|
222
215
|
var SIT_ONYX_DESIGN_TOKENS_SPACINGS_FILE = "package/src/styles/variables/spacing.css";
|
|
223
216
|
var SIT_ONYX_ICONS_METADATA_FILE = "package/dist/metadata.json";
|
|
224
|
-
|
|
225
|
-
//#region src/util/cached.ts
|
|
217
|
+
// src/util/cached.ts
|
|
226
218
|
/**
|
|
227
219
|
* Wrap a function to cache it's result based on the input arguments.
|
|
228
220
|
*/
|
|
@@ -234,8 +226,7 @@ var cached$1 = (func) => {
|
|
|
234
226
|
return cache.get(cacheKey);
|
|
235
227
|
};
|
|
236
228
|
};
|
|
237
|
-
|
|
238
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
229
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
239
230
|
function getEnumValues(entries) {
|
|
240
231
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
241
232
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -645,6 +636,7 @@ function hide(inst, key, value) {
|
|
|
645
636
|
return own(inst, key, value, false);
|
|
646
637
|
}
|
|
647
638
|
/** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
|
|
639
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
648
640
|
function derived(computes, table) {
|
|
649
641
|
for (const key in computes) {
|
|
650
642
|
const compute = computes[key];
|
|
@@ -768,8 +760,7 @@ function constantCatch(value) {
|
|
|
768
760
|
fn[CONSTANT_CATCH] = true;
|
|
769
761
|
return fn;
|
|
770
762
|
}
|
|
771
|
-
|
|
772
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
763
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
773
764
|
var _a$1;
|
|
774
765
|
var _zodDesc = {
|
|
775
766
|
value: void 0,
|
|
@@ -796,6 +787,7 @@ function newError(Definition) {
|
|
|
796
787
|
}
|
|
797
788
|
return new Definition();
|
|
798
789
|
}
|
|
790
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
799
791
|
function $constructor(name, initializer, proto, params) {
|
|
800
792
|
const zodProto = {};
|
|
801
793
|
function Internals(def) {
|
|
@@ -874,8 +866,7 @@ function config(newConfig) {
|
|
|
874
866
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
875
867
|
return globalConfig;
|
|
876
868
|
}
|
|
877
|
-
|
|
878
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
869
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
879
870
|
function _getMessage() {
|
|
880
871
|
const internals = this._zod;
|
|
881
872
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -926,8 +917,8 @@ var initializer$1 = (inst, def) => {
|
|
|
926
917
|
});
|
|
927
918
|
}
|
|
928
919
|
};
|
|
929
|
-
var $ZodError = $constructor("$ZodError", initializer$1);
|
|
930
|
-
var $ZodRealError = $constructor("$ZodError", initializer$1, void 0, { Parent: Error });
|
|
920
|
+
var $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
|
|
921
|
+
var $ZodRealError = /* @__PURE__ */ $constructor("$ZodError", initializer$1, void 0, { Parent: Error });
|
|
931
922
|
/** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
|
|
932
923
|
* ("toString", "constructor") would otherwise read through to the prototype, and assigning
|
|
933
924
|
* "__proto__" would hit the setter instead of creating a key. */
|
|
@@ -990,8 +981,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
990
981
|
processError(error);
|
|
991
982
|
return fieldErrors;
|
|
992
983
|
}
|
|
993
|
-
|
|
994
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
984
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
995
985
|
function finalizeParams(callee, params) {
|
|
996
986
|
return {
|
|
997
987
|
callee: params?.callee ?? callee,
|
|
@@ -1197,8 +1187,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1197
1187
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1198
1188
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1199
1189
|
};
|
|
1200
|
-
|
|
1201
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js
|
|
1190
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/regexes.js
|
|
1202
1191
|
/**
|
|
1203
1192
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
1204
1193
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -1270,8 +1259,7 @@ var boolean$1 = /^(?:true|false)$/i;
|
|
|
1270
1259
|
var _null$2 = /^null$/i;
|
|
1271
1260
|
var lowercase = /^[^A-Z]*$/;
|
|
1272
1261
|
var uppercase = /^[^a-z]*$/;
|
|
1273
|
-
|
|
1274
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js
|
|
1262
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/checks.js
|
|
1275
1263
|
var $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1276
1264
|
var _a;
|
|
1277
1265
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1566,8 +1554,7 @@ var $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst,
|
|
|
1566
1554
|
payload.value = def.tx(payload.value);
|
|
1567
1555
|
};
|
|
1568
1556
|
});
|
|
1569
|
-
|
|
1570
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js
|
|
1557
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/doc.js
|
|
1571
1558
|
var Doc = class {
|
|
1572
1559
|
constructor(args = [], closed = {}) {
|
|
1573
1560
|
this.content = [];
|
|
@@ -1600,15 +1587,13 @@ var Doc = class {
|
|
|
1600
1587
|
return new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${content.join("\n")}\n};`)(...Object.values(this.closed));
|
|
1601
1588
|
}
|
|
1602
1589
|
};
|
|
1603
|
-
|
|
1604
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js
|
|
1590
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/versions.js
|
|
1605
1591
|
var version$1 = {
|
|
1606
1592
|
major: 4,
|
|
1607
1593
|
minor: 6,
|
|
1608
1594
|
patch: 7
|
|
1609
1595
|
};
|
|
1610
|
-
|
|
1611
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js
|
|
1596
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/schemas.js
|
|
1612
1597
|
var $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1613
1598
|
var _a;
|
|
1614
1599
|
inst ?? (inst = {});
|
|
@@ -3014,8 +2999,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3014
2999
|
payload.issues.push(issue(_iss));
|
|
3015
3000
|
}
|
|
3016
3001
|
}
|
|
3017
|
-
|
|
3018
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
3002
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
3019
3003
|
var $ZodCyclicError = class extends Error {
|
|
3020
3004
|
constructor() {
|
|
3021
3005
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -3267,8 +3251,7 @@ function isBackEdge(ctx, value) {
|
|
|
3267
3251
|
const backEdges = ctx[STATE]?.backEdges;
|
|
3268
3252
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
3269
3253
|
}
|
|
3270
|
-
|
|
3271
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
3254
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
3272
3255
|
var error$1 = () => {
|
|
3273
3256
|
const Sizable = {
|
|
3274
3257
|
string: {
|
|
@@ -3375,8 +3358,7 @@ var error$1 = () => {
|
|
|
3375
3358
|
function en_default() {
|
|
3376
3359
|
return { localeError: error$1() };
|
|
3377
3360
|
}
|
|
3378
|
-
|
|
3379
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
3361
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
3380
3362
|
var _a;
|
|
3381
3363
|
var $ZodRegistry = class {
|
|
3382
3364
|
constructor() {
|
|
@@ -3422,8 +3404,7 @@ function registry() {
|
|
|
3422
3404
|
}
|
|
3423
3405
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3424
3406
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3425
|
-
|
|
3426
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
3407
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
3427
3408
|
function snapshotChecks(def) {
|
|
3428
3409
|
if (def.checks) def.checks = [...def.checks];
|
|
3429
3410
|
return def;
|
|
@@ -3938,8 +3919,7 @@ function _check(fn, params) {
|
|
|
3938
3919
|
ch._zod.check = fn;
|
|
3939
3920
|
return ch;
|
|
3940
3921
|
}
|
|
3941
|
-
|
|
3942
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
3922
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
3943
3923
|
function assignProps(target, ...sources) {
|
|
3944
3924
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
3945
3925
|
return target;
|
|
@@ -4382,8 +4362,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
4382
4362
|
extractDefs(ctx, schema);
|
|
4383
4363
|
return finalize(ctx, schema);
|
|
4384
4364
|
};
|
|
4385
|
-
|
|
4386
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
|
|
4365
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
|
|
4387
4366
|
var narrowMin = (agg, key, value) => {
|
|
4388
4367
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
4389
4368
|
};
|
|
@@ -4837,8 +4816,7 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
4837
4816
|
const seen = ctx.seen.get(schema);
|
|
4838
4817
|
seen.ref = def.innerType;
|
|
4839
4818
|
};
|
|
4840
|
-
|
|
4841
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/errors.js
|
|
4819
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/errors.js
|
|
4842
4820
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
4843
4821
|
function _lazyMethod(proto, key, make) {
|
|
4844
4822
|
Object.defineProperty(proto, key, {
|
|
@@ -4887,8 +4865,7 @@ var initializer = (inst, issues) => {
|
|
|
4887
4865
|
});
|
|
4888
4866
|
};
|
|
4889
4867
|
var ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
4890
|
-
|
|
4891
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/parse.js
|
|
4868
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/parse.js
|
|
4892
4869
|
var parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
4893
4870
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
4894
4871
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -4901,8 +4878,7 @@ var safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
4901
4878
|
var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
4902
4879
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
4903
4880
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
4904
|
-
|
|
4905
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
4881
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
4906
4882
|
function _ensureDefaultLocale() {
|
|
4907
4883
|
if (!globalConfig.localeError) config(en_default());
|
|
4908
4884
|
}
|
|
@@ -5785,8 +5761,7 @@ function refine(fn, _params = {}) {
|
|
|
5785
5761
|
function superRefine(fn, params) {
|
|
5786
5762
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
5787
5763
|
}
|
|
5788
|
-
|
|
5789
|
-
//#region ../../node_modules/.pnpm/zod-package-json@2.1.0_zod@4.6.7/node_modules/zod-package-json/dist/package-json.js
|
|
5764
|
+
// ../../node_modules/.pnpm/zod-package-json@2.1.0_zod@4.6.7/node_modules/zod-package-json/dist/package-json.js
|
|
5790
5765
|
var Bugs = union([string$1(), object({
|
|
5791
5766
|
url: optional(string$1()),
|
|
5792
5767
|
email: optional(string$1())
|
|
@@ -5948,8 +5923,7 @@ var PackageJson = looseObject({
|
|
|
5948
5923
|
*/
|
|
5949
5924
|
imports: optional(record(string$1(), unknown()))
|
|
5950
5925
|
});
|
|
5951
|
-
|
|
5952
|
-
//#region ../../node_modules/.pnpm/quick-lru@7.3.0/node_modules/quick-lru/index.js
|
|
5926
|
+
// ../../node_modules/.pnpm/quick-lru@7.3.0/node_modules/quick-lru/index.js
|
|
5953
5927
|
var QuickLRU = class extends Map {
|
|
5954
5928
|
#size = 0;
|
|
5955
5929
|
#cache = /* @__PURE__ */ new Map();
|
|
@@ -6153,8 +6127,7 @@ var QuickLRU = class extends Map {
|
|
|
6153
6127
|
return this.toString();
|
|
6154
6128
|
}
|
|
6155
6129
|
};
|
|
6156
|
-
|
|
6157
|
-
//#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/cache.js
|
|
6130
|
+
// ../../node_modules/.pnpm/query-registry@4.4.0_zod@4.6.7/node_modules/query-registry/dist/cache.js
|
|
6158
6131
|
/**
|
|
6159
6132
|
Internal cache for all requests.
|
|
6160
6133
|
@see {@link https://github.com/sindresorhus/quick-lru}
|
|
@@ -6164,38 +6137,65 @@ var cache = new QuickLRU({
|
|
|
6164
6137
|
maxSize: 100,
|
|
6165
6138
|
maxAge: 3e5
|
|
6166
6139
|
});
|
|
6167
|
-
|
|
6168
|
-
//#region ../../node_modules/.pnpm/url-join@5.0.0/node_modules/url-join/lib/url-join.js
|
|
6140
|
+
// ../../node_modules/.pnpm/url-join@5.1.1/node_modules/url-join/lib/url-join.js
|
|
6169
6141
|
function normalize(strArray) {
|
|
6170
|
-
|
|
6142
|
+
const resultArray = [];
|
|
6143
|
+
const slashBefore = [];
|
|
6171
6144
|
if (strArray.length === 0) return "";
|
|
6145
|
+
strArray = strArray.filter((part) => part !== "");
|
|
6172
6146
|
if (typeof strArray[0] !== "string") throw new TypeError("Url must be a string. Received " + strArray[0]);
|
|
6173
6147
|
if (strArray[0].match(/^[^/:]+:\/*$/) && strArray.length > 1) strArray[0] = strArray.shift() + strArray[0];
|
|
6148
|
+
if (strArray[0] === "/" && strArray.length > 1) strArray[0] = strArray.shift() + strArray[0];
|
|
6174
6149
|
if (strArray[0].match(/^file:\/\/\//)) strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, "$1:///");
|
|
6175
|
-
else strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, "$1://");
|
|
6176
|
-
|
|
6177
|
-
|
|
6150
|
+
else if (!strArray[0].match(/^\[.*:.*\]/)) strArray[0] = strArray[0].replace(/^([^/:]+):\/*/, "$1://");
|
|
6151
|
+
let prevEndsWithSlash = false;
|
|
6152
|
+
for (let i = 0; i < strArray.length; i++) {
|
|
6153
|
+
let component = strArray[i];
|
|
6178
6154
|
if (typeof component !== "string") throw new TypeError("Url must be a string. Received " + component);
|
|
6179
|
-
|
|
6155
|
+
const startsWithSlash = component.startsWith("/");
|
|
6156
|
+
const endsWithSlash = component.endsWith("/");
|
|
6180
6157
|
if (i > 0) component = component.replace(/^[\/]+/, "");
|
|
6181
6158
|
if (i < strArray.length - 1) component = component.replace(/[\/]+$/, "");
|
|
6182
6159
|
else component = component.replace(/[\/]+$/, "/");
|
|
6160
|
+
if (component === "") {
|
|
6161
|
+
prevEndsWithSlash = prevEndsWithSlash || startsWithSlash;
|
|
6162
|
+
continue;
|
|
6163
|
+
}
|
|
6183
6164
|
resultArray.push(component);
|
|
6165
|
+
slashBefore.push(startsWithSlash || prevEndsWithSlash);
|
|
6166
|
+
prevEndsWithSlash = endsWithSlash;
|
|
6167
|
+
}
|
|
6168
|
+
let str = "";
|
|
6169
|
+
for (let i = 0; i < resultArray.length; i++) {
|
|
6170
|
+
const part = resultArray[i];
|
|
6171
|
+
if (i === 0) {
|
|
6172
|
+
str += part;
|
|
6173
|
+
continue;
|
|
6174
|
+
}
|
|
6175
|
+
const prevPart = resultArray[i - 1];
|
|
6176
|
+
if (prevPart && prevPart.endsWith("?")) {
|
|
6177
|
+
str += part;
|
|
6178
|
+
continue;
|
|
6179
|
+
}
|
|
6180
|
+
if (prevPart.endsWith("#")) {
|
|
6181
|
+
str += (slashBefore[i] ? "/" : "") + part;
|
|
6182
|
+
continue;
|
|
6183
|
+
}
|
|
6184
|
+
str += "/" + part;
|
|
6184
6185
|
}
|
|
6185
|
-
var str = resultArray.join("/");
|
|
6186
6186
|
str = str.replace(/\/(\?|&|#[^!])/g, "$1");
|
|
6187
|
-
|
|
6188
|
-
|
|
6187
|
+
const hashIndex = str.indexOf("#");
|
|
6188
|
+
const beforeHash = hashIndex === -1 ? str : str.slice(0, hashIndex);
|
|
6189
|
+
const afterHash = hashIndex === -1 ? "" : str.slice(hashIndex + 1);
|
|
6190
|
+
const [base, ...params] = beforeHash.split(/(?:\?|&)+/);
|
|
6191
|
+
const query = params.filter(Boolean);
|
|
6192
|
+
str = base + (query.length > 0 ? "?" : "") + query.join("&") + (afterHash && afterHash.length > 0 ? "#" + afterHash : "");
|
|
6189
6193
|
return str;
|
|
6190
6194
|
}
|
|
6191
|
-
function urlJoin() {
|
|
6192
|
-
|
|
6193
|
-
if (typeof arguments[0] === "object") input = arguments[0];
|
|
6194
|
-
else input = [].slice.call(arguments);
|
|
6195
|
-
return normalize(input);
|
|
6195
|
+
function urlJoin(...args) {
|
|
6196
|
+
return normalize(Array.from(Array.isArray(args[0]) ? args[0] : args));
|
|
6196
6197
|
}
|
|
6197
|
-
|
|
6198
|
-
//#region ../../node_modules/.pnpm/validate-npm-package-name@7.0.2/node_modules/validate-npm-package-name/lib/builtin-modules.json
|
|
6198
|
+
// ../../node_modules/.pnpm/validate-npm-package-name@8.0.0/node_modules/validate-npm-package-name/lib/builtin-modules.json
|
|
6199
6199
|
var builtin_modules_exports = /* @__PURE__ */ __exportAll({ default: () => builtin_modules_default });
|
|
6200
6200
|
var builtin_modules_default;
|
|
6201
6201
|
var init_builtin_modules = __esmMin((() => {
|
|
@@ -6274,8 +6274,7 @@ var init_builtin_modules = __esmMin((() => {
|
|
|
6274
6274
|
"node:test/reporters"
|
|
6275
6275
|
];
|
|
6276
6276
|
}));
|
|
6277
|
-
|
|
6278
|
-
//#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/assert-valid-package-name.js
|
|
6277
|
+
// ../../node_modules/.pnpm/query-registry@4.4.0_zod@4.6.7/node_modules/query-registry/dist/assert-valid-package-name.js
|
|
6279
6278
|
var import_lib = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6280
6279
|
var builtins = (init_builtin_modules(), __toCommonJS(builtin_modules_exports).default);
|
|
6281
6280
|
var scopedPackagePattern = /* @__PURE__ */ new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
|
|
@@ -6340,8 +6339,7 @@ function assertValidPackageName(name) {
|
|
|
6340
6339
|
errors
|
|
6341
6340
|
} });
|
|
6342
6341
|
}
|
|
6343
|
-
|
|
6344
|
-
//#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/dist-tags.js
|
|
6342
|
+
// ../../node_modules/.pnpm/query-registry@4.4.0_zod@4.6.7/node_modules/query-registry/dist/dist-tags.js
|
|
6345
6343
|
/**
|
|
6346
6344
|
`DistTags` describes the mapping of distribution tags to semver version numbers
|
|
6347
6345
|
(e.g., `{ "latest": "1.0.0" }`).
|
|
@@ -6356,8 +6354,7 @@ var DistTags = object({
|
|
|
6356
6354
|
canary: string$1().optional(),
|
|
6357
6355
|
dev: string$1().optional()
|
|
6358
6356
|
}).catchall(string$1());
|
|
6359
|
-
|
|
6360
|
-
//#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/fetch-data.js
|
|
6357
|
+
// ../../node_modules/.pnpm/query-registry@4.4.0_zod@4.6.7/node_modules/query-registry/dist/fetch-data.js
|
|
6361
6358
|
async function fetchData(schema, url, headers) {
|
|
6362
6359
|
const cacheKey = JSON.stringify({
|
|
6363
6360
|
url,
|
|
@@ -6365,16 +6362,16 @@ async function fetchData(schema, url, headers) {
|
|
|
6365
6362
|
});
|
|
6366
6363
|
const cachedJson = cache.get(cacheKey);
|
|
6367
6364
|
if (cachedJson) return schema.parse(cachedJson);
|
|
6368
|
-
const
|
|
6365
|
+
const response = await fetch(url, { headers });
|
|
6366
|
+
if (!response.ok) throw new Error(`fetchData: ${response.status} ${response.statusText} for ${url}`);
|
|
6367
|
+
const json = await response.json();
|
|
6369
6368
|
cache.set(cacheKey, json);
|
|
6370
6369
|
return schema.parse(json);
|
|
6371
6370
|
}
|
|
6372
|
-
|
|
6373
|
-
//#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/npm-registry.js
|
|
6371
|
+
// ../../node_modules/.pnpm/query-registry@4.4.0_zod@4.6.7/node_modules/query-registry/dist/npm-registry.js
|
|
6374
6372
|
/** Base URL for the {@link https://registry.npmjs.org | npm registry API}. */
|
|
6375
6373
|
var npmRegistryUrl = "https://registry.npmjs.org";
|
|
6376
|
-
|
|
6377
|
-
//#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/get-package-manifest.js
|
|
6374
|
+
// ../../node_modules/.pnpm/query-registry@4.4.0_zod@4.6.7/node_modules/query-registry/dist/get-package-manifest.js
|
|
6378
6375
|
/**
|
|
6379
6376
|
`Dist` describes the distribution metadata generated by the registry.
|
|
6380
6377
|
@see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#dist}
|
|
@@ -6483,8 +6480,7 @@ async function getPackageManifest(name, versionOrTag = "latest", registry = npmR
|
|
|
6483
6480
|
assertValidPackageName(name);
|
|
6484
6481
|
return await fetchData(PackageManifest, urlJoin(registry, name, versionOrTag));
|
|
6485
6482
|
}
|
|
6486
|
-
|
|
6487
|
-
//#region ../../node_modules/.pnpm/query-registry@4.3.0_zod@4.6.7/node_modules/query-registry/dist/get-abbreviated-packument.js
|
|
6483
|
+
// ../../node_modules/.pnpm/query-registry@4.4.0_zod@4.6.7/node_modules/query-registry/dist/get-abbreviated-packument.js
|
|
6488
6484
|
var AbbreviatedPackument = object({
|
|
6489
6485
|
/** Package name. */
|
|
6490
6486
|
name: string$1(),
|
|
@@ -6532,13 +6528,11 @@ async function getAbbreviatedPackument(name, registry = npmRegistryUrl) {
|
|
|
6532
6528
|
assertValidPackageName(name);
|
|
6533
6529
|
return await fetchData(AbbreviatedPackument, urlJoin(registry, name), { Accept: "application/vnd.npm.install-v1+json" });
|
|
6534
6530
|
}
|
|
6535
|
-
|
|
6536
|
-
//#region ../../node_modules/.pnpm/events-universal@1.0.1/node_modules/events-universal/default.js
|
|
6531
|
+
// ../../node_modules/.pnpm/events-universal@1.0.1/node_modules/events-universal/default.js
|
|
6537
6532
|
var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6538
6533
|
module.exports = __require("events");
|
|
6539
6534
|
}));
|
|
6540
|
-
|
|
6541
|
-
//#region ../../node_modules/.pnpm/fast-fifo@1.3.2/node_modules/fast-fifo/fixed-size.js
|
|
6535
|
+
// ../../node_modules/.pnpm/fast-fifo@1.3.2/node_modules/fast-fifo/fixed-size.js
|
|
6542
6536
|
var require_fixed_size = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6543
6537
|
module.exports = class FixedFIFO {
|
|
6544
6538
|
constructor(hwm) {
|
|
@@ -6575,8 +6569,7 @@ var require_fixed_size = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6575
6569
|
}
|
|
6576
6570
|
};
|
|
6577
6571
|
}));
|
|
6578
|
-
|
|
6579
|
-
//#region ../../node_modules/.pnpm/fast-fifo@1.3.2/node_modules/fast-fifo/index.js
|
|
6572
|
+
// ../../node_modules/.pnpm/fast-fifo@1.3.2/node_modules/fast-fifo/index.js
|
|
6580
6573
|
var require_fast_fifo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6581
6574
|
var FixedFIFO = require_fixed_size();
|
|
6582
6575
|
module.exports = class FastFIFO {
|
|
@@ -6620,8 +6613,7 @@ var require_fast_fifo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6620
6613
|
}
|
|
6621
6614
|
};
|
|
6622
6615
|
}));
|
|
6623
|
-
|
|
6624
|
-
//#region ../../node_modules/.pnpm/b4a@1.9.0/node_modules/b4a/index.js
|
|
6616
|
+
// ../../node_modules/.pnpm/b4a@1.9.0/node_modules/b4a/index.js
|
|
6625
6617
|
var require_b4a = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6626
6618
|
function isBuffer(value) {
|
|
6627
6619
|
return Buffer.isBuffer(value) || value instanceof Uint8Array;
|
|
@@ -6779,8 +6771,7 @@ var require_b4a = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6779
6771
|
writeUInt32LE
|
|
6780
6772
|
};
|
|
6781
6773
|
}));
|
|
6782
|
-
|
|
6783
|
-
//#region ../../node_modules/.pnpm/text-decoder@1.2.7/node_modules/text-decoder/lib/pass-through-decoder.js
|
|
6774
|
+
// ../../node_modules/.pnpm/text-decoder@1.2.7/node_modules/text-decoder/lib/pass-through-decoder.js
|
|
6784
6775
|
var require_pass_through_decoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6785
6776
|
var b4a = require_b4a();
|
|
6786
6777
|
module.exports = class PassThroughDecoder {
|
|
@@ -6798,8 +6789,7 @@ var require_pass_through_decoder = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
6798
6789
|
}
|
|
6799
6790
|
};
|
|
6800
6791
|
}));
|
|
6801
|
-
|
|
6802
|
-
//#region ../../node_modules/.pnpm/text-decoder@1.2.7/node_modules/text-decoder/lib/utf8-decoder.js
|
|
6792
|
+
// ../../node_modules/.pnpm/text-decoder@1.2.7/node_modules/text-decoder/lib/utf8-decoder.js
|
|
6803
6793
|
var require_utf8_decoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6804
6794
|
var b4a = require_b4a();
|
|
6805
6795
|
/**
|
|
@@ -6946,8 +6936,7 @@ var require_utf8_decoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6946
6936
|
return 0;
|
|
6947
6937
|
}
|
|
6948
6938
|
}));
|
|
6949
|
-
|
|
6950
|
-
//#region ../../node_modules/.pnpm/text-decoder@1.2.7/node_modules/text-decoder/index.js
|
|
6939
|
+
// ../../node_modules/.pnpm/text-decoder@1.2.7/node_modules/text-decoder/index.js
|
|
6951
6940
|
var require_text_decoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6952
6941
|
var PassThroughDecoder = require_pass_through_decoder();
|
|
6953
6942
|
var UTF8Decoder = require_utf8_decoder();
|
|
@@ -6998,8 +6987,7 @@ var require_text_decoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6998
6987
|
}
|
|
6999
6988
|
}
|
|
7000
6989
|
}));
|
|
7001
|
-
|
|
7002
|
-
//#region ../../node_modules/.pnpm/streamx@2.28.1/node_modules/streamx/lib/errors.js
|
|
6990
|
+
// ../../node_modules/.pnpm/streamx@2.28.1/node_modules/streamx/lib/errors.js
|
|
7003
6991
|
var require_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7004
6992
|
module.exports = class StreamError extends Error {
|
|
7005
6993
|
constructor(msg, code, fn = StreamError) {
|
|
@@ -7036,8 +7024,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7036
7024
|
}
|
|
7037
7025
|
};
|
|
7038
7026
|
}));
|
|
7039
|
-
|
|
7040
|
-
//#region ../../node_modules/.pnpm/streamx@2.28.1/node_modules/streamx/index.js
|
|
7027
|
+
// ../../node_modules/.pnpm/streamx@2.28.1/node_modules/streamx/index.js
|
|
7041
7028
|
var require_streamx = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7042
7029
|
var { EventEmitter } = require_default();
|
|
7043
7030
|
var FIFO = require_fast_fifo();
|
|
@@ -7988,8 +7975,7 @@ var require_streamx = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7988
7975
|
PassThrough
|
|
7989
7976
|
};
|
|
7990
7977
|
}));
|
|
7991
|
-
|
|
7992
|
-
//#region ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/headers.js
|
|
7978
|
+
// ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/headers.js
|
|
7993
7979
|
var require_headers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7994
7980
|
var b4a = require_b4a();
|
|
7995
7981
|
var ZEROS = "0000000000000000000";
|
|
@@ -8224,8 +8210,7 @@ var require_headers = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8224
8210
|
return len + digits + str;
|
|
8225
8211
|
}
|
|
8226
8212
|
}));
|
|
8227
|
-
|
|
8228
|
-
//#region ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/extract.js
|
|
8213
|
+
// ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/extract.js
|
|
8229
8214
|
var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8230
8215
|
var { Writable, Readable, getStreamError } = require_streamx();
|
|
8231
8216
|
var FIFO = require_fast_fifo();
|
|
@@ -8573,8 +8558,7 @@ var require_extract = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8573
8558
|
return size && 512 - size;
|
|
8574
8559
|
}
|
|
8575
8560
|
}));
|
|
8576
|
-
|
|
8577
|
-
//#region ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/constants.js
|
|
8561
|
+
// ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/constants.js
|
|
8578
8562
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8579
8563
|
var constants = {
|
|
8580
8564
|
S_IFMT: 61440,
|
|
@@ -8590,8 +8574,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8590
8574
|
module.exports = constants;
|
|
8591
8575
|
}
|
|
8592
8576
|
}));
|
|
8593
|
-
|
|
8594
|
-
//#region ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/pack.js
|
|
8577
|
+
// ../../node_modules/.pnpm/tar-stream@3.2.2/node_modules/tar-stream/pack.js
|
|
8595
8578
|
var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8596
8579
|
var { Readable, Writable, getStreamError } = require_streamx();
|
|
8597
8580
|
var b4a = require_b4a();
|
|
@@ -8811,8 +8794,7 @@ var require_pack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8811
8794
|
return b4a.isBuffer(buf) ? buf : b4a.from(buf);
|
|
8812
8795
|
}
|
|
8813
8796
|
}));
|
|
8814
|
-
|
|
8815
|
-
//#region src/util/package.ts
|
|
8797
|
+
// src/util/package.ts
|
|
8816
8798
|
var import_tar_stream = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8817
8799
|
exports.extract = require_extract();
|
|
8818
8800
|
exports.pack = require_pack();
|
|
@@ -8864,8 +8846,7 @@ function createTarFileSearcher(filenames, results, abortController) {
|
|
|
8864
8846
|
});
|
|
8865
8847
|
return searchFile;
|
|
8866
8848
|
}
|
|
8867
|
-
|
|
8868
|
-
//#region src/util/component-meta-json.ts
|
|
8849
|
+
// src/util/component-meta-json.ts
|
|
8869
8850
|
var retrieveComponentMetaJsonFile = cached$1(async (versionOrTag) => {
|
|
8870
8851
|
const [file] = await getFilesFromPackage({
|
|
8871
8852
|
name: "sit-onyx",
|
|
@@ -8873,8 +8854,7 @@ var retrieveComponentMetaJsonFile = cached$1(async (versionOrTag) => {
|
|
|
8873
8854
|
}, [SIT_ONYX_COMPONENT_META_FILE], USER_AGENT);
|
|
8874
8855
|
return JSON.parse(file.data.toString("utf-8") ?? "");
|
|
8875
8856
|
});
|
|
8876
|
-
|
|
8877
|
-
//#region src/resources/get-component-api.ts
|
|
8857
|
+
// src/resources/get-component-api.ts
|
|
8878
8858
|
/**
|
|
8879
8859
|
* Returns true if both parameters are defined and equal (ignoring surrounding whitespaces and case)
|
|
8880
8860
|
*/
|
|
@@ -8944,8 +8924,7 @@ ${exposedText || "_No Exposed API_"}
|
|
|
8944
8924
|
}] };
|
|
8945
8925
|
}
|
|
8946
8926
|
];
|
|
8947
|
-
|
|
8948
|
-
//#region src/util/component-docs-md.ts
|
|
8927
|
+
// src/util/component-docs-md.ts
|
|
8949
8928
|
/**
|
|
8950
8929
|
* Retrieve the component documentation using the showcase shortlink url.
|
|
8951
8930
|
*/
|
|
@@ -8956,8 +8935,7 @@ var retrieveComponentDocsMdFile = cached$1(async (component) => {
|
|
|
8956
8935
|
Accept: "text/markdown"
|
|
8957
8936
|
} })).text();
|
|
8958
8937
|
});
|
|
8959
|
-
|
|
8960
|
-
//#region src/resources/get-component-docs.ts
|
|
8938
|
+
// src/resources/get-component-docs.ts
|
|
8961
8939
|
var getComponentDocs = [
|
|
8962
8940
|
"get-component-docs",
|
|
8963
8941
|
new ResourceTemplate("sit-onyx://docs/{component}", { list: void 0 }),
|
|
@@ -8977,8 +8955,7 @@ var getComponentDocs = [
|
|
|
8977
8955
|
}] };
|
|
8978
8956
|
}
|
|
8979
8957
|
];
|
|
8980
|
-
|
|
8981
|
-
//#region src/util/semver.ts
|
|
8958
|
+
// src/util/semver.ts
|
|
8982
8959
|
/**
|
|
8983
8960
|
* Compares two semver version strings.
|
|
8984
8961
|
* Precedence is considered based on https://semver.org.
|
|
@@ -9030,8 +9007,7 @@ var parseSemver = (semver) => {
|
|
|
9030
9007
|
};
|
|
9031
9008
|
};
|
|
9032
9009
|
var isPreRelease = (version) => parseSemver(version).preRelease !== "";
|
|
9033
|
-
|
|
9034
|
-
//#region src/resources/list-components.ts
|
|
9010
|
+
// src/resources/list-components.ts
|
|
9035
9011
|
var listComponents = [
|
|
9036
9012
|
"list-components",
|
|
9037
9013
|
new ResourceTemplate("sit-onyx://components/{version}", { list: async () => {
|
|
@@ -9056,8 +9032,7 @@ var listComponents = [
|
|
|
9056
9032
|
}] };
|
|
9057
9033
|
}
|
|
9058
9034
|
];
|
|
9059
|
-
|
|
9060
|
-
//#region ../../node_modules/.pnpm/@adobe+css-tools@4.5.0/node_modules/@adobe/css-tools/dist/esm/adobe-css-tools.mjs
|
|
9035
|
+
// ../../node_modules/.pnpm/@adobe+css-tools@4.5.0/node_modules/@adobe/css-tools/dist/esm/adobe-css-tools.mjs
|
|
9061
9036
|
var t = class extends Error {
|
|
9062
9037
|
reason;
|
|
9063
9038
|
filename;
|
|
@@ -9655,8 +9630,7 @@ var a = (s, h) => {
|
|
|
9655
9630
|
};
|
|
9656
9631
|
}());
|
|
9657
9632
|
};
|
|
9658
|
-
|
|
9659
|
-
//#region src/util/onyx-css-design-tokens.ts
|
|
9633
|
+
// src/util/onyx-css-design-tokens.ts
|
|
9660
9634
|
var retrieveOnyxDesignTokens = cached$1(async (versionOrTag) => {
|
|
9661
9635
|
return (await getFilesFromPackage({
|
|
9662
9636
|
name: "sit-onyx",
|
|
@@ -9665,8 +9639,7 @@ var retrieveOnyxDesignTokens = cached$1(async (versionOrTag) => {
|
|
|
9665
9639
|
return a(data.toString()).stylesheet.rules.filter((e$1) => e$1.type === e.rule).flatMap((r) => r.declarations).map((d) => d.type === e.declaration ? d.property : void 0).filter((p) => p !== void 0).filter((p) => p.startsWith("--"));
|
|
9666
9640
|
});
|
|
9667
9641
|
});
|
|
9668
|
-
|
|
9669
|
-
//#region src/resources/list-css-design-tokens.ts
|
|
9642
|
+
// src/resources/list-css-design-tokens.ts
|
|
9670
9643
|
var listCssDesignTokens = [
|
|
9671
9644
|
"list-css-design-tokens",
|
|
9672
9645
|
new ResourceTemplate("sit-onyx://css-design-tokens/{version}", { list: void 0 }),
|
|
@@ -9686,8 +9659,7 @@ var listCssDesignTokens = [
|
|
|
9686
9659
|
}] };
|
|
9687
9660
|
})
|
|
9688
9661
|
];
|
|
9689
|
-
|
|
9690
|
-
//#region src/util/icons-metadata-json.ts
|
|
9662
|
+
// src/util/icons-metadata-json.ts
|
|
9691
9663
|
var retrieveIconsMetadataJsonFile = cached$1(async (versionOrTag) => {
|
|
9692
9664
|
const [file] = await getFilesFromPackage({
|
|
9693
9665
|
name: "@sit-onyx/icons",
|
|
@@ -9695,8 +9667,7 @@ var retrieveIconsMetadataJsonFile = cached$1(async (versionOrTag) => {
|
|
|
9695
9667
|
}, [SIT_ONYX_ICONS_METADATA_FILE], USER_AGENT);
|
|
9696
9668
|
return JSON.parse(file.data.toString("utf-8") ?? "");
|
|
9697
9669
|
});
|
|
9698
|
-
|
|
9699
|
-
//#region src/resources/index.ts
|
|
9670
|
+
// src/resources/index.ts
|
|
9700
9671
|
var resources = [
|
|
9701
9672
|
getComponentApi,
|
|
9702
9673
|
getComponentDocs,
|
|
@@ -9740,8 +9711,7 @@ ${icons.map(({ aliases, name }) => `- \`${name}\` (aliases: ${aliases.join(", ")
|
|
|
9740
9711
|
listCssDesignTokens,
|
|
9741
9712
|
...allSkills
|
|
9742
9713
|
];
|
|
9743
|
-
|
|
9744
|
-
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/schemas.js
|
|
9714
|
+
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/mini/schemas.js
|
|
9745
9715
|
var ZodMiniType = /*@__PURE__*/ $constructor("ZodMiniType", (inst, def) => {
|
|
9746
9716
|
if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
|
|
9747
9717
|
$ZodType.init(inst, def);
|
|
@@ -9799,8 +9769,7 @@ var ZodMiniString = /*@__PURE__*/ $constructor("ZodMiniString", (inst, def) => {
|
|
|
9799
9769
|
function string(params) {
|
|
9800
9770
|
return /* @__PURE__ */ _string(ZodMiniString, params);
|
|
9801
9771
|
}
|
|
9802
|
-
|
|
9803
|
-
//#region src/util/mcp-server.ts
|
|
9772
|
+
// src/util/mcp-server.ts
|
|
9804
9773
|
var resourceToTool = (resource) => {
|
|
9805
9774
|
const [name, template, { title, description }, cb] = resource;
|
|
9806
9775
|
const hasInputSchema = typeof template === "object" && template.uriTemplate.variableNames.length;
|
|
@@ -9826,8 +9795,7 @@ var resourceToTool = (resource) => {
|
|
|
9826
9795
|
})
|
|
9827
9796
|
];
|
|
9828
9797
|
};
|
|
9829
|
-
|
|
9830
|
-
//#region src/server/server.ts
|
|
9798
|
+
// src/server/server.ts
|
|
9831
9799
|
var { name, version, description } = package_default;
|
|
9832
9800
|
var createServer = ({ resourcesAsTools, exclude }) => {
|
|
9833
9801
|
/**
|
|
@@ -9847,8 +9815,7 @@ var createServer = ({ resourcesAsTools, exclude }) => {
|
|
|
9847
9815
|
}
|
|
9848
9816
|
return server;
|
|
9849
9817
|
};
|
|
9850
|
-
|
|
9851
|
-
//#region src/server/stdio.ts
|
|
9818
|
+
// src/server/stdio.ts
|
|
9852
9819
|
/**
|
|
9853
9820
|
* MCP server running via stdio.
|
|
9854
9821
|
* All logging has to use stderr, otherwise the logging to stdio will break the transport.
|
|
@@ -9858,8 +9825,7 @@ var run$1 = async (getServer) => {
|
|
|
9858
9825
|
await getServer().connect(transport);
|
|
9859
9826
|
error("MCP Server running on stdio.");
|
|
9860
9827
|
};
|
|
9861
|
-
|
|
9862
|
-
//#region src/index.ts
|
|
9828
|
+
// src/index.ts
|
|
9863
9829
|
var SUPPORTED_TRANSPORTS = {
|
|
9864
9830
|
stdio: run$1,
|
|
9865
9831
|
http: run
|
|
@@ -9933,5 +9899,4 @@ Options:
|
|
|
9933
9899
|
await SUPPORTED_TRANSPORTS[transport](getServer);
|
|
9934
9900
|
}
|
|
9935
9901
|
}
|
|
9936
|
-
//#endregion
|
|
9937
9902
|
export { createServer, run as http, run$1 as stdio };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sit-onyx/modelcontextprotocol",
|
|
3
|
-
"version": "0.4.1-dev-
|
|
3
|
+
"version": "0.4.1-dev-20261024115525",
|
|
4
4
|
"description": "MCP (Model Context Protocol) Server that provide onyx specific tools and resources.",
|
|
5
5
|
"homepage": "https://onyx.schwarz",
|
|
6
6
|
"bugs": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@adobe/css-tools": "^4.5.0",
|
|
30
|
-
"@modelcontextprotocol/inspector": "^2.
|
|
30
|
+
"@modelcontextprotocol/inspector": "^2.12.0",
|
|
31
31
|
"@sit-onyx/shared": "^0.1.0",
|
|
32
32
|
"@types/mdast": "^4.0.4",
|
|
33
33
|
"@types/node": "24.19.2",
|
|
34
34
|
"@types/unist": "^3.0.3",
|
|
35
|
-
"query-registry": "^4.
|
|
35
|
+
"query-registry": "^4.4.0",
|
|
36
36
|
"remark": "^15.0.1",
|
|
37
37
|
"remark-frontmatter": "^5.0.0",
|
|
38
38
|
"remark-parse": "^11.0.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"typescript": "6.0.3",
|
|
42
42
|
"unified": "^11.0.5",
|
|
43
43
|
"unplugin-dts": "1.1.2",
|
|
44
|
-
"vite": "8.3.
|
|
44
|
+
"vite": "8.3.5",
|
|
45
45
|
"vue-component-meta": "3.3.13",
|
|
46
46
|
"yaml": "^2.9.1",
|
|
47
47
|
"zod": "^4.6.7"
|