@xyd-js/mcp 0.0.0-build-52f9bb2-20251012023142 → 0.0.0-build-2bb31f3-20251012215032
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/References.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +54 -54
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/markdown.d.ts +2 -0
- package/dist/lib/mcpUniformResources.d.ts +2 -0
- package/dist/lib/mcpUniformTools.d.ts +2 -0
- package/dist/lib/turndown-plugin-xyd.d.ts +38 -0
- package/dist/lib/utils.d.ts +3 -0
- package/package.json +11 -10
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./lib";
|
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-C1oDl5NM-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,14 +94081,14 @@ 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.1_@types+react@19.2.2__@types+react@19._tesfs6rbdmidky6w3yd3xq2ex4/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
|
|
|
94088
|
-
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.
|
|
94088
|
+
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
94089
94089
|
var React3 = __toESM(require_react(), 1);
|
|
94090
94090
|
|
|
94091
|
-
// ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.
|
|
94091
|
+
// ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
94092
94092
|
var React2 = __toESM(require_react(), 1);
|
|
94093
94093
|
function setRef(ref, value) {
|
|
94094
94094
|
if (typeof ref === "function") {
|
|
@@ -94125,7 +94125,7 @@ function useComposedRefs(...refs) {
|
|
|
94125
94125
|
return React2.useCallback(composeRefs(...refs), refs);
|
|
94126
94126
|
}
|
|
94127
94127
|
|
|
94128
|
-
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.
|
|
94128
|
+
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
94129
94129
|
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
94130
94130
|
function createSlot(ownerName) {
|
|
94131
94131
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
@@ -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.1_@types+react@19.2.2__@types+react@19._tesfs6rbdmidky6w3yd3xq2ex4/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",
|
|
@@ -94244,7 +94244,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
94244
94244
|
return { ...primitive, [node]: Node2 };
|
|
94245
94245
|
}, {});
|
|
94246
94246
|
|
|
94247
|
-
// ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.
|
|
94247
|
+
// ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
94248
94248
|
var React5 = __toESM(require_react(), 1);
|
|
94249
94249
|
var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
|
|
94250
94250
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
@@ -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.1_@types+react@19.2.2__@types+react@19_7qyezc4sxwmmozn2erraqjv5my/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);
|
|
@@ -94678,14 +94678,14 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
|
|
|
94678
94678
|
};
|
|
94679
94679
|
}
|
|
94680
94680
|
|
|
94681
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.
|
|
94681
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
94682
94682
|
var React8 = __toESM(require_react(), 1);
|
|
94683
94683
|
|
|
94684
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.
|
|
94684
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
94685
94685
|
var React7 = __toESM(require_react(), 1);
|
|
94686
94686
|
var useLayoutEffect2 = globalThis?.document ? React7.useLayoutEffect : () => {};
|
|
94687
94687
|
|
|
94688
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.
|
|
94688
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
94689
94689
|
var React23 = __toESM(require_react(), 1);
|
|
94690
94690
|
var useInsertionEffect = React8[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
94691
94691
|
function useControllableState({
|
|
@@ -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.1_@types+react@19.2.2__@types+react@19.2_exivhdqcag5sqfd7tshs4yn4ri/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";
|
|
@@ -94874,7 +94874,7 @@ function getElementRef2(element) {
|
|
|
94874
94874
|
return element.props.ref || element.ref;
|
|
94875
94875
|
}
|
|
94876
94876
|
|
|
94877
|
-
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.
|
|
94877
|
+
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
94878
94878
|
var React10 = __toESM(require_react(), 1);
|
|
94879
94879
|
var useReactId = React10[" useId ".trim().toString()] || (() => {
|
|
94880
94880
|
return;
|
|
@@ -94889,7 +94889,7 @@ function useId(deterministicId) {
|
|
|
94889
94889
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
94890
94890
|
}
|
|
94891
94891
|
|
|
94892
|
-
// ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.
|
|
94892
|
+
// ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
94893
94893
|
var React11 = __toESM(require_react(), 1);
|
|
94894
94894
|
var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
|
|
94895
94895
|
var DirectionContext = React11.createContext(undefined);
|
|
@@ -94898,7 +94898,7 @@ function useDirection(localDir) {
|
|
|
94898
94898
|
return localDir || globalDir || "ltr";
|
|
94899
94899
|
}
|
|
94900
94900
|
|
|
94901
|
-
// ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.
|
|
94901
|
+
// ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
94902
94902
|
var React12 = __toESM(require_react(), 1);
|
|
94903
94903
|
function useCallbackRef(callback) {
|
|
94904
94904
|
const callbackRef = React12.useRef(callback);
|
|
@@ -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.1_@types+react@19.2.2__@types+react_d4efxad6bekyy6b3sdn6xsfyoi/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.1_@types+react@19.2.2__@types+react@19.2.2__qrofxsi3pqvngu6c2wd62g6lhm/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-C1oDl5NM-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++)
|
|
@@ -114860,14 +114860,14 @@ function Ce2(e488) {
|
|
|
114860
114860
|
var t481, r325 = e488.properties;
|
|
114861
114861
|
return import_react5.default.createElement("ul", { className: me2 }, (t481 = Te2(r325)) === null || t481 === undefined ? undefined : t481.map(function(e489, t482) {
|
|
114862
114862
|
var r326, a443 = e489.name, o237 = e489.type, i314 = Fe2(e489), l52 = ((r326 = e489.ofProperty) === null || r326 === undefined ? undefined : r326.description) || e489.description || "", c105 = Ie2(e489.meta);
|
|
114863
|
-
return import_react5.default.createElement("atlas-apiref-prop", { className: ve2, key: t482 }, a443 || o237 ? import_react5.default.createElement("dl", { className: fe2 }, import_react5.default.createElement(
|
|
114863
|
+
return import_react5.default.createElement("atlas-apiref-prop", { className: ve2, key: t482 }, a443 || o237 ? import_react5.default.createElement("dl", { className: fe2 }, import_react5.default.createElement(Oe2, { property: e489, meta: e489.meta || [] }), import_react5.default.createElement(_e2, { property: e489 }), import_react5.default.createElement(Re2, { metas: e489.meta || [] })) : null, l52 || c105 ? import_react5.default.createElement("atlas-apiref-propdescription", { className: pe2 }, import_react5.default.createElement(import_react5.default.Fragment, null, import_react5.default.createElement("div", null, l52), import_react5.default.createElement("div", null, Ie2(e489.meta)))) : null, (i314 == null ? undefined : i314.length) > 0 ? import_react5.default.createElement(Ae2, { parent: e489, properties: i314 }) : null);
|
|
114864
114864
|
}));
|
|
114865
114865
|
}
|
|
114866
|
-
function
|
|
114866
|
+
function Oe2(e488) {
|
|
114867
114867
|
var t481 = e488.property.name;
|
|
114868
114868
|
return t481 ? import_react5.default.createElement("atlas-apiref-propname", null, import_react5.default.createElement("dd", null, import_react5.default.createElement("code", { "data-parent-choice-type": e488.parentChoiceType ? "true" : undefined, className: he2 }, t481))) : null;
|
|
114869
114869
|
}
|
|
114870
|
-
function
|
|
114870
|
+
function _e2(e488) {
|
|
114871
114871
|
var t481 = e488.property, r325 = import_react5.useContext(J4).Link, o237 = r325 === undefined ? "a" : r325, i314 = function(e489) {
|
|
114872
114872
|
var n470, t482, r326 = function() {
|
|
114873
114873
|
var e490 = import_react5.useContext(J4);
|
|
@@ -114882,7 +114882,7 @@ function Oe2(e488) {
|
|
|
114882
114882
|
return o238.startsWith("/") || (o238 = "/" + o238), "".concat(r326).concat(o238);
|
|
114883
114883
|
console.warn("Multiple canonical links found for property", e489.name, e489.symbolDef.canonical);
|
|
114884
114884
|
return "";
|
|
114885
|
-
}(t481), l52 =
|
|
114885
|
+
}(t481), l52 = Me2(t481);
|
|
114886
114886
|
return l52 ? (i314 && (l52 = import_react5.default.createElement(o237, { className: ye2, href: i314 }, l52)), import_react5.default.createElement("atlas-apiref-proptype", null, import_react5.default.createElement("dd", null, import_react5.default.createElement("code", { className: ge2 }, l52)))) : null;
|
|
114887
114887
|
}
|
|
114888
114888
|
function Pe2(e488) {
|
|
@@ -114935,7 +114935,7 @@ function Ae2(e488) {
|
|
|
114935
114935
|
return u28(!c105);
|
|
114936
114936
|
}, isExpanded: c105 }) : null, import_react5.default.createElement("div", { className: "".concat(Ee2, " ").concat(c105 && be2) }, import_react5.default.createElement("div", { className: ke2 }, import_react5.default.createElement("ul", { role: "list", className: xe2 }, s187 == null ? undefined : s187.map(function(e489, t481) {
|
|
114937
114937
|
var r326, a444 = e489.name, o238 = e489.type, i315 = Fe2(e489), l53 = ((r326 = e489.ofProperty) === null || r326 === undefined ? undefined : r326.description) || e489.description || "", c106 = Ie2(e489.meta);
|
|
114938
|
-
return import_react5.default.createElement("atlas-apiref-prop", { className: we2, key: t481 }, a444 || o238 ? import_react5.default.createElement("dl", { className: fe2 }, import_react5.default.createElement(
|
|
114938
|
+
return import_react5.default.createElement("atlas-apiref-prop", { className: we2, key: t481 }, a444 || o238 ? import_react5.default.createElement("dl", { className: fe2 }, import_react5.default.createElement(Oe2, { property: e489, meta: e489.meta || [], parentChoiceType: d29 || !!v4 }), import_react5.default.createElement(_e2, { property: e489 }), import_react5.default.createElement(Re2, { metas: e489.meta || [] })) : null, l53 || c106 ? import_react5.default.createElement("atlas-apiref-propdescription", { className: pe2 }, import_react5.default.createElement(import_react5.default.Fragment, null, import_react5.default.createElement("div", null, l53), import_react5.default.createElement("div", null, Ie2(e489.meta)))) : null, (i315 == null ? undefined : i315.length) ? import_react5.default.createElement(Ae2, { parent: e489, properties: i315 }) : null);
|
|
114939
114939
|
})))));
|
|
114940
114940
|
}
|
|
114941
114941
|
function Be2(e488) {
|
|
@@ -114958,7 +114958,7 @@ function Te2(e488) {
|
|
|
114958
114958
|
}));
|
|
114959
114959
|
});
|
|
114960
114960
|
}
|
|
114961
|
-
function
|
|
114961
|
+
function Me2(e488) {
|
|
114962
114962
|
var n470 = function e(n471) {
|
|
114963
114963
|
var t481, r325, a443, o237, i314, l52, c105, u28, s187, d29;
|
|
114964
114964
|
if (n471 == null ? undefined : n471.ofProperty)
|
|
@@ -114969,13 +114969,13 @@ function ze2(e488) {
|
|
|
114969
114969
|
var v4 = qe2(n471.ofProperty.ofProperty);
|
|
114970
114970
|
v4 && m82.push(v4);
|
|
114971
114971
|
}
|
|
114972
|
-
var p28 =
|
|
114972
|
+
var p28 = ze2(n471.ofProperty);
|
|
114973
114973
|
return [[].concat([p28, "of"], m82).join(" ")];
|
|
114974
114974
|
case DEFINED_DEFINITION_PROPERTY_TYPE.UNION:
|
|
114975
114975
|
case DEFINED_DEFINITION_PROPERTY_TYPE.ENUM:
|
|
114976
114976
|
case DEFINED_DEFINITION_PROPERTY_TYPE.XOR:
|
|
114977
114977
|
if ((t481 = n471.ofProperty.properties) === null || t481 === undefined ? undefined : t481.length) {
|
|
114978
|
-
var f4 =
|
|
114978
|
+
var f4 = ze2(n471);
|
|
114979
114979
|
if (f4) {
|
|
114980
114980
|
var h6 = "";
|
|
114981
114981
|
return n471.ofProperty.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM && ((r325 = n471.ofProperty.ofProperty) === null || r325 === undefined ? undefined : r325.type) && (h6 = qe2({ type: (a443 = n471.ofProperty.ofProperty) === null || a443 === undefined ? undefined : a443.type, properties: n471.ofProperty.properties || [] })), h6 || (h6 = qe2({ type: DEFINED_DEFINITION_PROPERTY_TYPE.UNION, properties: n471.ofProperty.properties || [] })), (h6 == null ? undefined : h6.length) && h6.includes("$$") ? [f4] : [[f4, "of", h6].join(" ")];
|
|
@@ -114985,8 +114985,8 @@ function ze2(e488) {
|
|
|
114985
114985
|
return ((o237 = n471.ofProperty) === null || o237 === undefined ? undefined : o237.ofProperty) ? [(l52 = (i314 = n471.ofProperty) === null || i314 === undefined ? undefined : i314.ofProperty) === null || l52 === undefined ? undefined : l52.type] : [];
|
|
114986
114986
|
default:
|
|
114987
114987
|
if (!n471.ofProperty.name) {
|
|
114988
|
-
var g6 =
|
|
114989
|
-
var n472 =
|
|
114988
|
+
var g6 = ze2(n471), E8 = function(e489) {
|
|
114989
|
+
var n472 = ze2(e489);
|
|
114990
114990
|
if (!n472)
|
|
114991
114991
|
return e489.type;
|
|
114992
114992
|
return n472;
|
|
@@ -115004,18 +115004,18 @@ function ze2(e488) {
|
|
|
115004
115004
|
var x4, w4 = {}, N6 = [], j4 = h3(n471.properties);
|
|
115005
115005
|
try {
|
|
115006
115006
|
for (j4.s();!(x4 = j4.n()).done; ) {
|
|
115007
|
-
var S4, C4 = x4.value,
|
|
115008
|
-
C4.ofProperty &&
|
|
115007
|
+
var S4, C4 = x4.value, O4 = e(C4);
|
|
115008
|
+
C4.ofProperty && O4.length > 1 && (O4 = [[O4[0]].concat(b4(O4.slice(1, O4.length))).join("")]), (S4 = N6).push.apply(S4, b4(O4));
|
|
115009
115009
|
}
|
|
115010
115010
|
} catch (e489) {
|
|
115011
115011
|
j4.e(e489);
|
|
115012
115012
|
} finally {
|
|
115013
115013
|
j4.f();
|
|
115014
115014
|
}
|
|
115015
|
-
var
|
|
115015
|
+
var _8, P4 = false, R8 = h3(N6);
|
|
115016
115016
|
try {
|
|
115017
|
-
for (R8.s();!(
|
|
115018
|
-
var A8 =
|
|
115017
|
+
for (R8.s();!(_8 = R8.n()).done; ) {
|
|
115018
|
+
var A8 = _8.value;
|
|
115019
115019
|
if (A8.trim() === "or") {
|
|
115020
115020
|
P4 = true;
|
|
115021
115021
|
break;
|
|
@@ -115044,7 +115044,7 @@ function ze2(e488) {
|
|
|
115044
115044
|
})) || false;
|
|
115045
115045
|
}(e488) && (n470.length ? n470.push("or", "null") : n470.push("null")), n470.join(" ");
|
|
115046
115046
|
}
|
|
115047
|
-
function
|
|
115047
|
+
function ze2(e488) {
|
|
115048
115048
|
switch (e488.type) {
|
|
115049
115049
|
case DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY:
|
|
115050
115050
|
return "array";
|
|
@@ -115056,7 +115056,7 @@ function Me2(e488) {
|
|
|
115056
115056
|
}
|
|
115057
115057
|
}
|
|
115058
115058
|
function qe2(e488) {
|
|
115059
|
-
var n470, t481 =
|
|
115059
|
+
var n470, t481 = Me2(e488);
|
|
115060
115060
|
return ((n470 = t481 == null ? undefined : t481.startsWith) === null || n470 === undefined ? undefined : n470.call(t481, "$$")) ? "" : t481;
|
|
115061
115061
|
}
|
|
115062
115062
|
function Ie2(e488) {
|
|
@@ -115309,7 +115309,7 @@ var un = (an || (an = 1, on.exports = (rn || (rn = 1, function() {
|
|
|
115309
115309
|
var d30, v5 = t482.children;
|
|
115310
115310
|
if (v5 !== undefined)
|
|
115311
115311
|
if (o238)
|
|
115312
|
-
if (
|
|
115312
|
+
if (_8(v5)) {
|
|
115313
115313
|
for (o238 = 0;o238 < v5.length; o238++)
|
|
115314
115314
|
c105(v5[o238]);
|
|
115315
115315
|
Object.freeze && Object.freeze(v5);
|
|
@@ -115317,7 +115317,7 @@ var un = (an || (an = 1, on.exports = (rn || (rn = 1, function() {
|
|
|
115317
115317
|
console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
115318
115318
|
else
|
|
115319
115319
|
c105(v5);
|
|
115320
|
-
if (
|
|
115320
|
+
if (O4.call(t482, "key")) {
|
|
115321
115321
|
v5 = e488(n470);
|
|
115322
115322
|
var p29 = Object.keys(t482).filter(function(e489) {
|
|
115323
115323
|
return e489 !== "key";
|
|
@@ -115330,7 +115330,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
115330
115330
|
<%s key={someKey} {...props} />`, o238, v5, p29, v5), L4[v5 + o238] = true);
|
|
115331
115331
|
}
|
|
115332
115332
|
if (v5 = null, a444 !== undefined && (r325(a444), v5 = "" + a444), function(e489) {
|
|
115333
|
-
if (
|
|
115333
|
+
if (O4.call(e489, "key")) {
|
|
115334
115334
|
var n471 = Object.getOwnPropertyDescriptor(e489, "key").get;
|
|
115335
115335
|
if (n471 && n471.isReactWarning)
|
|
115336
115336
|
return false;
|
|
@@ -115357,7 +115357,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
115357
115357
|
function u28(e489) {
|
|
115358
115358
|
return B2(e489) === "object" && e489 !== null && e489.$$typeof === m82;
|
|
115359
115359
|
}
|
|
115360
|
-
var s187, d29 = import_react5.default, m82 = Symbol.for("react.transitional.element"), v4 = Symbol.for("react.portal"), p28 = Symbol.for("react.fragment"), f4 = Symbol.for("react.strict_mode"), h6 = Symbol.for("react.profiler"), g6 = Symbol.for("react.consumer"), y4 = Symbol.for("react.context"), E8 = Symbol.for("react.forward_ref"), b8 = Symbol.for("react.suspense"), x4 = Symbol.for("react.suspense_list"), w4 = Symbol.for("react.memo"), N6 = Symbol.for("react.lazy"), j4 = Symbol.for("react.activity"), S4 = Symbol.for("react.client.reference"), C4 = d29.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
115360
|
+
var s187, d29 = import_react5.default, m82 = Symbol.for("react.transitional.element"), v4 = Symbol.for("react.portal"), p28 = Symbol.for("react.fragment"), f4 = Symbol.for("react.strict_mode"), h6 = Symbol.for("react.profiler"), g6 = Symbol.for("react.consumer"), y4 = Symbol.for("react.context"), E8 = Symbol.for("react.forward_ref"), b8 = Symbol.for("react.suspense"), x4 = Symbol.for("react.suspense_list"), w4 = Symbol.for("react.memo"), N6 = Symbol.for("react.lazy"), j4 = Symbol.for("react.activity"), S4 = Symbol.for("react.client.reference"), C4 = d29.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O4 = Object.prototype.hasOwnProperty, _8 = Array.isArray, P4 = console.createTask ? console.createTask : function() {
|
|
115361
115361
|
return null;
|
|
115362
115362
|
}, R8 = {}, A8 = (d29 = { react_stack_bottom_frame: function(e489) {
|
|
115363
115363
|
return e489();
|
|
@@ -115480,13 +115480,13 @@ function Sn(e488, n470) {
|
|
|
115480
115480
|
function Cn(e488) {
|
|
115481
115481
|
return e488.content !== undefined;
|
|
115482
115482
|
}
|
|
115483
|
-
function
|
|
115483
|
+
function On(e488) {
|
|
115484
115484
|
var { content: n470, handlers: t481, annotationStack: r325 } = e488;
|
|
115485
115485
|
return n470.map(function(e489, n471) {
|
|
115486
|
-
return Cn(e489) ? un.jsx(Pn, { annotationStack: r325, handlers: t481, group: e489 }, n471) : e489.style ? un.jsx(
|
|
115486
|
+
return Cn(e489) ? un.jsx(Pn, { annotationStack: r325, handlers: t481, group: e489 }, n471) : e489.style ? un.jsx(_n, { annotationStack: r325, handlers: t481, token: e489 }, n471) : e489.value;
|
|
115487
115487
|
});
|
|
115488
115488
|
}
|
|
115489
|
-
function
|
|
115489
|
+
function _n(e488) {
|
|
115490
115490
|
var { handlers: n470, token: t481 } = e488, r325 = function(e489, n471) {
|
|
115491
115491
|
var t482 = [];
|
|
115492
115492
|
return e489.forEach(function(e490) {
|
|
@@ -115503,7 +115503,7 @@ function On(e488) {
|
|
|
115503
115503
|
return un.jsx(wn, { merge: { _stack: r325, style: t481.style, value: t481.value } });
|
|
115504
115504
|
}
|
|
115505
115505
|
function Pn(e488) {
|
|
115506
|
-
var n470, t481 = e488.group, r325 = e488.handlers, a443 = e488.annotationStack, o237 = t481.annotation, i314 = t481.content, l52 = o237.name, c105 =
|
|
115506
|
+
var n470, t481 = e488.group, r325 = e488.handlers, a443 = e488.annotationStack, o237 = t481.annotation, i314 = t481.content, l52 = o237.name, c105 = On({ content: i314, handlers: r325, annotationStack: [].concat(j2(a443), [o237]) }), u28 = (n470 = r325.find(function(e489) {
|
|
115507
115507
|
return e489.name === l52;
|
|
115508
115508
|
})) === null || n470 === undefined ? undefined : n470.Inline;
|
|
115509
115509
|
return u28 ? un.jsx(u28, { annotation: o237, children: c105 }) : c105;
|
|
@@ -115555,7 +115555,7 @@ function Fn(e488) {
|
|
|
115555
115555
|
t482.push({ Component: a444, annotation: e491 });
|
|
115556
115556
|
}));
|
|
115557
115557
|
}), t482;
|
|
115558
|
-
}(t481, o237), m82 =
|
|
115558
|
+
}(t481, o237), m82 = On({ content: s187, handlers: t481, annotationStack: o237 }), v4 = { lineNumber: i314, indentation: c105, totalLines: l52, _stack: d29 };
|
|
115559
115559
|
return un.jsx(xn, { merge: v4, children: m82 }, i314);
|
|
115560
115560
|
}
|
|
115561
115561
|
function Tn(e488) {
|
|
@@ -115564,9 +115564,9 @@ function Tn(e488) {
|
|
|
115564
115564
|
})) === null || n470 === undefined ? undefined : n470.Block, s187 = Ln({ linesOrGroups: l52, handlers: r325, inlineAnnotations: a443, annotationStack: [].concat(j2(o237), [i314]) });
|
|
115565
115565
|
return u28 ? un.jsx(u28, { annotation: i314, children: s187 }) : s187;
|
|
115566
115566
|
}
|
|
115567
|
-
var
|
|
115568
|
-
var
|
|
115569
|
-
var { code: t481, handlers: r325 } = e488, a443 = r325 === undefined ? [] : r325, o237 = I4(e488,
|
|
115567
|
+
var Mn = ["code", "handlers"];
|
|
115568
|
+
var zn = import_react5.forwardRef(function(e488, n470) {
|
|
115569
|
+
var { code: t481, handlers: r325 } = e488, a443 = r325 === undefined ? [] : r325, o237 = I4(e488, Mn), i314 = t481.tokens, l52 = t481.themeName, c105 = t481.lang, u28 = t481.annotations;
|
|
115570
115570
|
if (!i314)
|
|
115571
115571
|
throw new Error("Missing tokens in code block. Use the `highlight` function to generate the tokens.");
|
|
115572
115572
|
a443.filter(function(e489) {
|
|
@@ -115769,7 +115769,7 @@ Xn.LineNumber = function(e488) {
|
|
|
115769
115769
|
` || e489.tokens.pop();
|
|
115770
115770
|
})(o237);
|
|
115771
115771
|
var l52 = null;
|
|
115772
|
-
return (e488.descriptionHead || e488.descriptionContent) && (l52 = import_react5.default.createElement("div", { part: "code-description", className: "c1sbwmbs" }, import_react5.default.createElement("div", null, e488.descriptionIcon ? import_react5.default.createElement(Gt, { name: e488.descriptionIcon, size: 16 }) : import_react5.default.createElement(Zn, null)), import_react5.default.createElement("div", null, import_react5.default.createElement(Zt, { weight: "bold" }, e488.descriptionHead), import_react5.default.createElement("span", null, e488.descriptionContent)))), import_react5.default.createElement("xyd-code-pre", null, import_react5.default.createElement(
|
|
115772
|
+
return (e488.descriptionHead || e488.descriptionContent) && (l52 = import_react5.default.createElement("div", { part: "code-description", className: "c1sbwmbs" }, import_react5.default.createElement("div", null, e488.descriptionIcon ? import_react5.default.createElement(Gt, { name: e488.descriptionIcon, size: 16 }) : import_react5.default.createElement(Zn, null)), import_react5.default.createElement("div", null, import_react5.default.createElement(Zt, { weight: "bold" }, e488.descriptionHead), import_react5.default.createElement("span", null, e488.descriptionContent)))), import_react5.default.createElement("xyd-code-pre", null, import_react5.default.createElement(zn, { part: "pre", "data-size": r325, style: (o237 == null ? undefined : o237.style) || (o237 == null ? undefined : o237.style), className: "".concat(Dn, " ").concat(a443 || ""), code: o237, handlers: i314, ref: t481.ref }), l52);
|
|
115773
115773
|
};
|
|
115774
115774
|
var Jn = { mark: { name: "mark", Line: function(e488) {
|
|
115775
115775
|
return import_react5.default.createElement(Xn.Mark, Object.assign({}, e488));
|
|
@@ -115933,12 +115933,12 @@ function Ct2(n470) {
|
|
|
115933
115933
|
return null;
|
|
115934
115934
|
var a443 = t481.slice(0, 2), o237 = t481.slice(2), i314 = o237.length > 0 ? "Show more (".concat(o237.length, ") reference").concat(o237.length === 1 ? "" : "s") : "";
|
|
115935
115935
|
return e487.createElement(e487.Fragment, null, a443.map(function(n471, t482) {
|
|
115936
|
-
return e487.createElement(
|
|
115936
|
+
return e487.createElement(Ot2, { key: t482, reference: n471, index: t482, syntaxHighlight: r325 });
|
|
115937
115937
|
}), o237.length > 0 && e487.createElement(Y4, { label: i314 }, o237.map(function(n471, t482) {
|
|
115938
|
-
return e487.createElement(
|
|
115938
|
+
return e487.createElement(Ot2, { key: t482 + 2, reference: n471, index: t482 + 2, syntaxHighlight: r325 });
|
|
115939
115939
|
})));
|
|
115940
115940
|
}
|
|
115941
|
-
function
|
|
115941
|
+
function Ot2(n470) {
|
|
115942
115942
|
var t481, r325 = n470.reference, a443 = n470.index, o237 = n470.syntaxHighlight;
|
|
115943
115943
|
return e487.createElement(e487.Fragment, { key: a443 }, e487.createElement(nr, { size: 3 }, r325.title), ((t481 = r325.context) === null || t481 === undefined ? undefined : t481.fileName) && e487.createElement(Y4, { label: "", kind: "tertiary", title: e487.createElement(e487.Fragment, null, "Source code in ", e487.createElement(G4, null, r325.context.fileFullPath)), icon: e487.createElement(St2, null) }, e487.createElement(rt2, { name: r325.context.fileName, description: r325.context.sourcecode.description, theme: o237 || undefined, codeblocks: [{ lang: r325.context.sourcecode.lang, meta: "", value: r325.context.sourcecode.code }] })), r325.definitions.map(function(n471, t482) {
|
|
115944
115944
|
var r326;
|
|
@@ -115947,7 +115947,7 @@ function _t2(n470) {
|
|
|
115947
115947
|
}))));
|
|
115948
115948
|
}), e487.createElement("br", null));
|
|
115949
115949
|
}
|
|
115950
|
-
var
|
|
115950
|
+
var _t2 = { track: function() {} };
|
|
115951
115951
|
function Pt2(e488) {
|
|
115952
115952
|
var t481;
|
|
115953
115953
|
t481 = e488.kind === "secondary" ? Ct2 : jt2;
|
|
@@ -115959,7 +115959,7 @@ function Pt2(e488) {
|
|
|
115959
115959
|
console.error("Error parsing references", e489);
|
|
115960
115960
|
}
|
|
115961
115961
|
var a443 = e488.analytics ? UXAnalytics : import_react5.default.Fragment;
|
|
115962
|
-
return import_react5.default.createElement(a443, { analytics:
|
|
115962
|
+
return import_react5.default.createElement(a443, { analytics: _t2 }, import_react5.default.createElement(Nt2, null, import_react5.default.createElement("div", { className: "a5edgc7" }, import_react5.default.createElement(t481, { references: r325, apiRefItemKind: e488.apiRefItemKind }))));
|
|
115963
115963
|
}
|
|
115964
115964
|
|
|
115965
115965
|
// References.tsx
|
|
@@ -151078,7 +151078,7 @@ async function mcpUniformTools(server, uniformSource, token) {
|
|
|
151078
151078
|
content: [
|
|
151079
151079
|
{
|
|
151080
151080
|
type: "text",
|
|
151081
|
-
text: `Error executing ${reference.canonical}: ${error.message}`
|
|
151081
|
+
text: `Error executing ${reference.canonical}: ${error instanceof Error ? error.message : String(error)}`
|
|
151082
151082
|
}
|
|
151083
151083
|
]
|
|
151084
151084
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import TurndownService from "turndown";
|
|
2
|
+
export declare function turndownPluginXyd(turndownService: TurndownService): TurndownService;
|
|
3
|
+
export declare const rules: {
|
|
4
|
+
/**
|
|
5
|
+
* Handles xyd code blocks
|
|
6
|
+
*
|
|
7
|
+
* @todo: in the future it should be inside atlas?
|
|
8
|
+
*/
|
|
9
|
+
pre: (turndownService: TurndownService) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Handles tablist elements
|
|
12
|
+
* Ignore tablist elements to prevent language tabs from being rendered as text
|
|
13
|
+
*
|
|
14
|
+
* @todo: in the future it should be inside atlas?
|
|
15
|
+
*/
|
|
16
|
+
ignoreTablist: (turndownService: TurndownService) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Handles sample buttons
|
|
19
|
+
* Handle atlas-sample-buttons to format response examples properly
|
|
20
|
+
*
|
|
21
|
+
* @todo: in the future it should be inside atlas?
|
|
22
|
+
*/
|
|
23
|
+
ignoreSampleButtons: (turndownService: TurndownService) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Handles meta info elements
|
|
26
|
+
* Handle atlas-apiref-meta-info to format as markdown lists
|
|
27
|
+
*
|
|
28
|
+
* @todo: in the future it should be inside atlas?
|
|
29
|
+
*/
|
|
30
|
+
ignoreMetaInfo: (turndownService: TurndownService) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Handles atlas props elements
|
|
33
|
+
* Handle atlas-apiref-prop into array format
|
|
34
|
+
*
|
|
35
|
+
* @todo: in the future it should be inside atlas?
|
|
36
|
+
*/
|
|
37
|
+
atlasProps: (turndownService: TurndownService) => void;
|
|
38
|
+
};
|
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-2bb31f3-20251012215032",
|
|
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/
|
|
32
|
-
"@xyd-js/
|
|
33
|
-
"@xyd-js/
|
|
34
|
-
"@xyd-js/
|
|
35
|
-
"@xyd-js/
|
|
28
|
+
"@xyd-js/atlas": "0.0.0-build-2bb31f3-20251012215032",
|
|
29
|
+
"@xyd-js/components": "0.0.0-build-2bb31f3-20251012215032",
|
|
30
|
+
"@xyd-js/core": "0.0.0-build-2bb31f3-20251012215032",
|
|
31
|
+
"@xyd-js/framework": "0.0.0-build-2bb31f3-20251012215032",
|
|
32
|
+
"@xyd-js/gql": "0.0.0-build-2bb31f3-20251012215032",
|
|
33
|
+
"@xyd-js/openapi": "0.0.0-build-2bb31f3-20251012215032",
|
|
34
|
+
"@xyd-js/plugins": "0.0.0-build-2bb31f3-20251012215032",
|
|
35
|
+
"@xyd-js/uniform": "0.0.0-build-2bb31f3-20251012215032"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^20.9.0",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"rimraf": "^3.0.2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"build": "bun build index.ts --outdir dist --target node --format esm",
|
|
44
|
+
"build": "bun build index.ts --outdir dist --target node --format esm && bun build:types",
|
|
45
|
+
"build:types": "tsc --project tsconfig.json",
|
|
45
46
|
"dev": "bun --watch index.ts",
|
|
46
47
|
"clean": "rimraf build"
|
|
47
48
|
}
|