@xyd-js/mcp 0.0.0-build-6675456-20251014012658 → 0.0.0-build-e4644f3-20251015210712
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 +36 -20
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -94010,7 +94010,7 @@ var $resume = s91.resume;
|
|
|
94010
94010
|
var e487 = __toESM(require_react(), 1);
|
|
94011
94011
|
var import_react5 = __toESM(require_react(), 1);
|
|
94012
94012
|
|
|
94013
|
-
// ../xyd-atlas/dist/VideoGuide-
|
|
94013
|
+
// ../xyd-atlas/dist/VideoGuide-BCy_k9Xp-BWu_u92C.js
|
|
94014
94014
|
var import_react4 = __toESM(require_react(), 1);
|
|
94015
94015
|
|
|
94016
94016
|
// ../../node_modules/.pnpm/openux-js@0.0.0-pre.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/openux-js/dist/index.js
|
|
@@ -94081,7 +94081,7 @@ function collectContext(node) {
|
|
|
94081
94081
|
return [...collectContext(node.parent), { name: node.name, props: node.props }];
|
|
94082
94082
|
}
|
|
94083
94083
|
|
|
94084
|
-
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.
|
|
94084
|
+
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19._bvylq7i3abu4hbpi6ukh4as6qa/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
94085
94085
|
var React4 = __toESM(require_react(), 1);
|
|
94086
94086
|
var ReactDOM = __toESM(require_react_dom(), 1);
|
|
94087
94087
|
|
|
@@ -94209,7 +94209,7 @@ function getElementRef(element) {
|
|
|
94209
94209
|
return element.props.ref || element.ref;
|
|
94210
94210
|
}
|
|
94211
94211
|
|
|
94212
|
-
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.
|
|
94212
|
+
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19._bvylq7i3abu4hbpi6ukh4as6qa/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
94213
94213
|
var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
|
|
94214
94214
|
var NODES = [
|
|
94215
94215
|
"a",
|
|
@@ -94305,7 +94305,7 @@ function composeContextScopes(...scopes) {
|
|
|
94305
94305
|
return createScope;
|
|
94306
94306
|
}
|
|
94307
94307
|
|
|
94308
|
-
// ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.
|
|
94308
|
+
// ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19_k2fjofhzujhv5hwvt4rfkjvvre/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
94309
94309
|
var import_react2 = __toESM(require_react(), 1);
|
|
94310
94310
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
94311
94311
|
var import_react3 = __toESM(require_react(), 1);
|
|
@@ -94747,7 +94747,7 @@ function isFunction(value) {
|
|
|
94747
94747
|
}
|
|
94748
94748
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
94749
94749
|
|
|
94750
|
-
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.
|
|
94750
|
+
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19.2_rg5yyfyy4s5drnz7lbyqdnomsm/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
94751
94751
|
var React24 = __toESM(require_react(), 1);
|
|
94752
94752
|
var React9 = __toESM(require_react(), 1);
|
|
94753
94753
|
"use client";
|
|
@@ -94908,7 +94908,7 @@ function useCallbackRef(callback) {
|
|
|
94908
94908
|
return React12.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
94909
94909
|
}
|
|
94910
94910
|
|
|
94911
|
-
// ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.
|
|
94911
|
+
// ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react_paqq5osm2xyp7byivn6dbxmu24/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
94912
94912
|
var React13 = __toESM(require_react(), 1);
|
|
94913
94913
|
var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
|
|
94914
94914
|
"use client";
|
|
@@ -95103,7 +95103,7 @@ function wrapArray(array, startIndex) {
|
|
|
95103
95103
|
var Root = RovingFocusGroup;
|
|
95104
95104
|
var Item = RovingFocusGroupItem;
|
|
95105
95105
|
|
|
95106
|
-
// ../../node_modules/.pnpm/@radix-ui+react-tabs@1.1.13_@types+react-dom@19.2.
|
|
95106
|
+
// ../../node_modules/.pnpm/@radix-ui+react-tabs@1.1.13_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19.2.2__rlyzqydnl7bpknvwznw5oefge4/node_modules/@radix-ui/react-tabs/dist/index.mjs
|
|
95107
95107
|
var exports_dist = {};
|
|
95108
95108
|
__export(exports_dist, {
|
|
95109
95109
|
createTabsScope: () => createTabsScope,
|
|
@@ -107900,7 +107900,7 @@ var $ChevronLeft = ChevronLeft;
|
|
|
107900
107900
|
var $ChevronRight = ChevronRight;
|
|
107901
107901
|
var $Copy = Copy;
|
|
107902
107902
|
|
|
107903
|
-
// ../xyd-atlas/dist/VideoGuide-
|
|
107903
|
+
// ../xyd-atlas/dist/VideoGuide-BCy_k9Xp-BWu_u92C.js
|
|
107904
107904
|
function f2(e241, t238) {
|
|
107905
107905
|
(t238 == null || t238 > e241.length) && (t238 = e241.length);
|
|
107906
107906
|
for (var r161 = 0, n232 = Array(t238);r161 < t238; r161++)
|
|
@@ -115099,10 +115099,10 @@ function Ue2() {
|
|
|
115099
115099
|
})), Ue2.apply(this, arguments);
|
|
115100
115100
|
}
|
|
115101
115101
|
function De2(e488, n470) {
|
|
115102
|
-
return
|
|
115102
|
+
return Ve2.apply(this, arguments);
|
|
115103
115103
|
}
|
|
115104
|
-
function
|
|
115105
|
-
return
|
|
115104
|
+
function Ve2() {
|
|
115105
|
+
return Ve2 = T4(P2().m(function e(n470, t481) {
|
|
115106
115106
|
var r325, a443, o237, i314, l52, c105 = arguments;
|
|
115107
115107
|
return P2().w(function(e488) {
|
|
115108
115108
|
for (;; )
|
|
@@ -115119,9 +115119,9 @@ function We2() {
|
|
|
115119
115119
|
return o237 = e488.v, i314 = o237.code, l52 = o237.annotations, e488.a(2, { code: i314, annotations: l52 });
|
|
115120
115120
|
}
|
|
115121
115121
|
}, e);
|
|
115122
|
-
})),
|
|
115122
|
+
})), Ve2.apply(this, arguments);
|
|
115123
115123
|
}
|
|
115124
|
-
function
|
|
115124
|
+
function We2(e488) {
|
|
115125
115125
|
return !Ge2(e488);
|
|
115126
115126
|
}
|
|
115127
115127
|
function Ge2(e488) {
|
|
@@ -115614,7 +115614,7 @@ function qn(e488) {
|
|
|
115614
115614
|
var t483, r327, a445;
|
|
115615
115615
|
return { tokens: e490, range: [n472 + 1, n472 + 1], lineNumber: n472 + 1, indentation: ((a445 = (r327 = (t483 = e490[0]) === null || t483 === undefined ? undefined : t483.value) === null || r327 === undefined ? undefined : r327.replace(/\t/g, " ").match(/^\s*/)) === null || a445 === undefined ? undefined : a445[0].length) || 0, totalLines: g6 };
|
|
115616
115616
|
});
|
|
115617
|
-
}(n470), o237 = r325.filter(
|
|
115617
|
+
}(n470), o237 = r325.filter(We2), i314 = r325.filter(Ge2), l52 = function(e489, n471) {
|
|
115618
115618
|
for (var t482 = e489, r326 = n471.length - 1;r326 >= 0; r326--)
|
|
115619
115619
|
t482 = Rn(t482, n471[r326]);
|
|
115620
115620
|
return t482;
|
|
@@ -115691,18 +115691,18 @@ function Un(e488, n470) {
|
|
|
115691
115691
|
}));
|
|
115692
115692
|
}
|
|
115693
115693
|
var Dn = "cwih9s3";
|
|
115694
|
-
function
|
|
115694
|
+
function Vn() {
|
|
115695
115695
|
return import_react5.default.createElement("xyd-code-loader", { className: Dn }, import_react5.default.createElement(In, null));
|
|
115696
115696
|
}
|
|
115697
|
-
var
|
|
115697
|
+
var Wn = import_react5.default.createContext({ ref: { current: null }, setActiveTab: function() {}, setActiveExample: function() {} });
|
|
115698
115698
|
function Gn() {
|
|
115699
|
-
return import_react5.default.useContext(
|
|
115699
|
+
return import_react5.default.useContext(Wn);
|
|
115700
115700
|
}
|
|
115701
115701
|
function Yn(e488) {
|
|
115702
115702
|
var r325 = e488.children, a443 = import_react5.useRef(null), o237 = import_react5.useState(""), c105 = M2(o237, 2), u28 = c105[0], s187 = c105[1], m82 = import_react5.useState(""), v4 = M2(m82, 2), p28 = v4[0], f4 = v4[1], h6 = Kt();
|
|
115703
115703
|
return import_react5.useEffect(function() {
|
|
115704
115704
|
f4(h6.value);
|
|
115705
|
-
}, [h6.value]), import_react5.default.createElement(
|
|
115705
|
+
}, [h6.value]), import_react5.default.createElement(Wn, { value: { ref: a443, setActiveTab: s187, setActiveExample: f4 } }, import_react5.default.createElement(UXNode, { name: "CodeSample", props: { tab: u28, example: p28, code: "" } }, import_react5.default.createElement(Kn, null, r325)));
|
|
115706
115706
|
}
|
|
115707
115707
|
function Kn(e488) {
|
|
115708
115708
|
var n470, t481, r325 = e488.children;
|
|
@@ -115746,7 +115746,7 @@ function Kn(e488) {
|
|
|
115746
115746
|
}(), r325;
|
|
115747
115747
|
}
|
|
115748
115748
|
function Xn(e488) {
|
|
115749
|
-
return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(
|
|
115749
|
+
return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(Vn, null) }, import_react5.default.createElement($n, { codeblocks: e488.codeblocks, theme: e488.theme }, e488.children));
|
|
115750
115750
|
}
|
|
115751
115751
|
function Zn() {
|
|
115752
115752
|
return import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", strokeWidth: 3, stroke: "currentColor", fill: "none", width: 16, strokeLinecap: "round", strokeLinejoin: "round" }, import_react5.default.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), import_react5.default.createElement("path", { d: "M12 12l8 -4.5" }), import_react5.default.createElement("path", { d: "M12 12v9" }), import_react5.default.createElement("path", { d: "M12 12l-8 -4.5" }), import_react5.default.createElement("path", { d: "M12 12l8 4.5" }), import_react5.default.createElement("path", { d: "M12 3v9" }), import_react5.default.createElement("path", { d: "M12 12l-8 4.5" }));
|
|
@@ -139005,6 +139005,7 @@ function oasToSnippet(oas, operation, values2, auth, lang, opts = {}) {
|
|
|
139005
139005
|
}
|
|
139006
139006
|
|
|
139007
139007
|
// ../openapi-sampler/dist/index.js
|
|
139008
|
+
var SKIP_SYMBOL = Symbol("skip");
|
|
139008
139009
|
function pad(number) {
|
|
139009
139010
|
if (number < 10) {
|
|
139010
139011
|
return "0" + number;
|
|
@@ -139130,7 +139131,10 @@ function allOfSample(into, children, options, spec, context) {
|
|
|
139130
139131
|
let res = traverse(into, options, spec);
|
|
139131
139132
|
const subSamples = [];
|
|
139132
139133
|
for (let subSchema of children) {
|
|
139133
|
-
const { type: type2, readOnly, writeOnly, value } = traverse({ type: res.type, ...subSchema }, options, spec,
|
|
139134
|
+
const { type: type2, readOnly, writeOnly, value } = traverse({ type: res.type, ...subSchema }, options, spec, {
|
|
139135
|
+
...context,
|
|
139136
|
+
isAllOfChild: true
|
|
139137
|
+
});
|
|
139134
139138
|
if (res.type && type2 && type2 !== res.type) {
|
|
139135
139139
|
console.warn("allOf: schemas with different types can't be merged");
|
|
139136
139140
|
res.type = type2;
|
|
@@ -139143,6 +139147,11 @@ function allOfSample(into, children, options, spec, context) {
|
|
|
139143
139147
|
}
|
|
139144
139148
|
if (res.type === "object") {
|
|
139145
139149
|
res.value = mergeDeep(res.value || {}, ...subSamples.filter((sample) => typeof sample === "object"));
|
|
139150
|
+
for (const key in res.value) {
|
|
139151
|
+
if (res.value[key] === SKIP_SYMBOL) {
|
|
139152
|
+
delete res.value[key];
|
|
139153
|
+
}
|
|
139154
|
+
}
|
|
139146
139155
|
return res;
|
|
139147
139156
|
} else {
|
|
139148
139157
|
if (res.type === "array") {
|
|
@@ -139594,9 +139603,15 @@ function sampleObject(schema2, options = {}, spec, context) {
|
|
|
139594
139603
|
}
|
|
139595
139604
|
const sample = traverse(schema2.properties[propertyName], options, spec, { propertyName, depth: depth + 1 });
|
|
139596
139605
|
if (options.skipReadOnly && sample.readOnly) {
|
|
139606
|
+
if (context?.isAllOfChild) {
|
|
139607
|
+
res[propertyName] = SKIP_SYMBOL;
|
|
139608
|
+
}
|
|
139597
139609
|
return;
|
|
139598
139610
|
}
|
|
139599
139611
|
if (options.skipWriteOnly && sample.writeOnly) {
|
|
139612
|
+
if (context?.isAllOfChild) {
|
|
139613
|
+
res[propertyName] = SKIP_SYMBOL;
|
|
139614
|
+
}
|
|
139600
139615
|
return;
|
|
139601
139616
|
}
|
|
139602
139617
|
if (options?.format === "xml") {
|
|
@@ -139672,6 +139687,7 @@ function regexSample$1(pattern) {
|
|
|
139672
139687
|
pattern = pattern.toString();
|
|
139673
139688
|
pattern = pattern.match(/\/(.+?)\//)?.[1] ?? "";
|
|
139674
139689
|
}
|
|
139690
|
+
pattern = pattern.replace(/^(\^)?(.*?)(\$)?$/, "$2");
|
|
139675
139691
|
let min;
|
|
139676
139692
|
let max;
|
|
139677
139693
|
let repetitions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/mcp",
|
|
3
|
-
"version": "0.0.0-build-
|
|
3
|
+
"version": "0.0.0-build-e4644f3-20251015210712",
|
|
4
4
|
"description": "Model Context Protocol (MCP) utilities for xyd (library mode)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"turndown-plugin-gfm": "^1.0.2",
|
|
26
26
|
"unist-builder": "^4.0.0",
|
|
27
27
|
"zod": "^3.25.76",
|
|
28
|
-
"@xyd-js/atlas": "0.0.0-build-
|
|
29
|
-
"@xyd-js/components": "0.0.0-build-
|
|
30
|
-
"@xyd-js/core": "0.0.0-build-
|
|
31
|
-
"@xyd-js/framework": "0.0.0-build-
|
|
32
|
-
"@xyd-js/gql": "0.0.0-build-
|
|
33
|
-
"@xyd-js/openapi": "0.0.0-build-
|
|
34
|
-
"@xyd-js/plugins": "0.0.0-build-
|
|
35
|
-
"@xyd-js/uniform": "0.0.0-build-
|
|
28
|
+
"@xyd-js/atlas": "0.0.0-build-e4644f3-20251015210712",
|
|
29
|
+
"@xyd-js/components": "0.0.0-build-e4644f3-20251015210712",
|
|
30
|
+
"@xyd-js/core": "0.0.0-build-e4644f3-20251015210712",
|
|
31
|
+
"@xyd-js/framework": "0.0.0-build-e4644f3-20251015210712",
|
|
32
|
+
"@xyd-js/gql": "0.0.0-build-e4644f3-20251015210712",
|
|
33
|
+
"@xyd-js/openapi": "0.0.0-build-e4644f3-20251015210712",
|
|
34
|
+
"@xyd-js/plugins": "0.0.0-build-e4644f3-20251015210712",
|
|
35
|
+
"@xyd-js/uniform": "0.0.0-build-e4644f3-20251015210712"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^20.9.0",
|