@xyd-js/mcp 0.0.0-build-ec04de2-20250930214016 → 0.0.0-build-eeaeeda-20251001123000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +51 -51
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -92765,7 +92765,7 @@ var import_server = __toESM(require_server_node(), 1);
92765
92765
  var e487 = __toESM(require_react(), 1);
92766
92766
  var import_react5 = __toESM(require_react(), 1);
92767
92767
 
92768
- // ../xyd-atlas/dist/VideoGuide-KhfKuGJQ-BWu_u92C.js
92768
+ // ../xyd-atlas/dist/VideoGuide-D5ujJ5G2-BWu_u92C.js
92769
92769
  var import_react4 = __toESM(require_react(), 1);
92770
92770
 
92771
92771
  // ../../node_modules/.pnpm/openux-js@0.0.0-pre.1_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/openux-js/dist/index.js
@@ -106655,7 +106655,7 @@ var $ChevronLeft = ChevronLeft;
106655
106655
  var $ChevronRight = ChevronRight;
106656
106656
  var $Copy = Copy;
106657
106657
 
106658
- // ../xyd-atlas/dist/VideoGuide-KhfKuGJQ-BWu_u92C.js
106658
+ // ../xyd-atlas/dist/VideoGuide-D5ujJ5G2-BWu_u92C.js
106659
106659
  function f2(e241, t238) {
106660
106660
  (t238 == null || t238 > e241.length) && (t238 = e241.length);
106661
106661
  for (var r161 = 0, n232 = Array(t238);r161 < t238; r161++)
@@ -113362,7 +113362,7 @@ function G4(e488) {
113362
113362
  var { className: t481, children: r325 } = e488;
113363
113363
  return import_react5.default.createElement("code", { className: "".concat("c1w59zdn", " ").concat(t481 || "") }, import_react5.default.createElement("span", { part: "content" }, r325));
113364
113364
  }
113365
- function K4(e488) {
113365
+ function Y4(e488) {
113366
113366
  var r325, a443 = e488.children, o237 = e488.label, i314 = Wt(), l51 = function(e489, n470, r326) {
113367
113367
  var a444 = import_react5.useState(false), o238 = M2(a444, 2), i315 = o238[0], l52 = o238[1];
113368
113368
  return function(t481) {
@@ -113376,9 +113376,9 @@ function K4(e488) {
113376
113376
  }), c105 = ["secondary", "tertiary"].includes(e488.kind || "");
113377
113377
  c105 && "title" in e488 && (r325 = e488.title);
113378
113378
  var u28 = e488.kind || "primary";
113379
- return import_react5.default.createElement("details", { part: "details", className: "".concat("dwmojve", " ").concat(e488.className || ""), "data-kind": e488.kind, onClick: l51 }, import_react5.default.createElement("summary", { part: "summary" }, u28 === "primary" && import_react5.default.createElement(import_react5.default.Fragment, null, e488.icon || import_react5.default.createElement(Y4, null), import_react5.default.createElement("div", { part: "summary-deep-label" }, o237)), c105 && import_react5.default.createElement("div", null, import_react5.default.createElement("div", { part: "summary-deep" }, e488.icon || import_react5.default.createElement(X5, null), import_react5.default.createElement("div", { part: "summary-deep-text" }, r325)), import_react5.default.createElement("div", { part: "summary-deep-label" }, o237)), c105 && import_react5.default.createElement(Y4, null)), import_react5.default.createElement("div", { part: "content" }, a443));
113379
+ return import_react5.default.createElement("details", { part: "details", className: "".concat("dwmojve", " ").concat(e488.className || ""), "data-kind": e488.kind, onClick: l51 }, import_react5.default.createElement("summary", { part: "summary" }, u28 === "primary" && import_react5.default.createElement(import_react5.default.Fragment, null, e488.icon || import_react5.default.createElement(K4, null), import_react5.default.createElement("div", { part: "summary-deep-label" }, o237)), c105 && import_react5.default.createElement("div", null, import_react5.default.createElement("div", { part: "summary-deep" }, e488.icon || import_react5.default.createElement(X5, null), import_react5.default.createElement("div", { part: "summary-deep-text" }, r325)), import_react5.default.createElement("div", { part: "summary-deep-label" }, o237)), c105 && import_react5.default.createElement(K4, null)), import_react5.default.createElement("div", { part: "content" }, a443));
113380
113380
  }
113381
- function Y4() {
113381
+ function K4() {
113382
113382
  return import_react5.default.createElement("div", { part: "icon" }, import_react5.default.createElement("svg", { "data-icon": "true", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 24 24" }, import_react5.default.createElement("path", { fillRule: "evenodd", d: "M8.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L14.586 12 8.293 5.707a1 1 0 0 1 0-1.414Z", clipRule: "evenodd" })));
113383
113383
  }
113384
113384
  function X5() {
@@ -113715,74 +113715,74 @@ function Te2(e488) {
113715
113715
  }
113716
113716
  function Me2(e488) {
113717
113717
  var n470 = function e(n471) {
113718
- var t481, r325, a443, o237, i314, l51, c105, u28;
113718
+ var t481, r325, a443, o237, i314, l51, c105, u28, s186, d29;
113719
113719
  if (n471 == null ? undefined : n471.ofProperty)
113720
113720
  switch (n471.ofProperty.type) {
113721
113721
  case DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY:
113722
- var s186 = [];
113723
- if (n471.type && s186.push(n471.type), n471.ofProperty.ofProperty) {
113724
- var d29 = qe2(n471.ofProperty.ofProperty);
113725
- d29 && s186.push(d29);
113722
+ var m82 = [];
113723
+ if (n471.type && m82.push(n471.type), n471.ofProperty.ofProperty) {
113724
+ var v4 = qe2(n471.ofProperty.ofProperty);
113725
+ v4 && m82.push(v4);
113726
113726
  }
113727
- var m82 = ze2(n471.ofProperty);
113728
- return [[].concat([m82, "of"], s186).join(" ")];
113727
+ var p28 = ze2(n471.ofProperty);
113728
+ return [[].concat([p28, "of"], m82).join(" ")];
113729
113729
  case DEFINED_DEFINITION_PROPERTY_TYPE.UNION:
113730
113730
  case DEFINED_DEFINITION_PROPERTY_TYPE.ENUM:
113731
113731
  case DEFINED_DEFINITION_PROPERTY_TYPE.XOR:
113732
113732
  if ((t481 = n471.ofProperty.properties) === null || t481 === undefined ? undefined : t481.length) {
113733
- var v4 = ze2(n471);
113734
- if (v4) {
113735
- var p28 = "";
113736
- return n471.ofProperty.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM && ((r325 = n471.ofProperty.ofProperty) === null || r325 === undefined ? undefined : r325.type) && (p28 = qe2({ type: (a443 = n471.ofProperty.ofProperty) === null || a443 === undefined ? undefined : a443.type, properties: n471.ofProperty.properties || [] })), p28 || (p28 = qe2({ type: DEFINED_DEFINITION_PROPERTY_TYPE.UNION, properties: n471.ofProperty.properties || [] })), (p28 == null ? undefined : p28.length) && p28.includes("$$") ? [v4] : [[v4, "of", p28].join(" ")];
113733
+ var f4 = ze2(n471);
113734
+ if (f4) {
113735
+ var h6 = "";
113736
+ 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(" ")];
113737
113737
  }
113738
113738
  return [n471.type, qe2(n471.ofProperty)];
113739
113739
  }
113740
113740
  return ((o237 = n471.ofProperty) === null || o237 === undefined ? undefined : o237.ofProperty) ? [(l51 = (i314 = n471.ofProperty) === null || i314 === undefined ? undefined : i314.ofProperty) === null || l51 === undefined ? undefined : l51.type] : [];
113741
113741
  default:
113742
113742
  if (!n471.ofProperty.name) {
113743
- var f4 = ze2(n471), h6 = function(e489) {
113743
+ var g6 = ze2(n471), E8 = function(e489) {
113744
113744
  var n472 = ze2(e489);
113745
113745
  if (!n472)
113746
113746
  return e489.type;
113747
113747
  return n472;
113748
113748
  }(n471);
113749
- if (h6.startsWith("$$"))
113749
+ if ((c105 = E8 == null ? undefined : E8.startsWith) === null || c105 === undefined ? undefined : c105.call(E8, "$$"))
113750
113750
  return [n471.ofProperty.type];
113751
- var g6 = [h6];
113752
- return f4 && g6.push("of"), g6.push(qe2(n471.ofProperty)), g6;
113751
+ var k4 = [E8];
113752
+ return g6 && k4.push("of"), k4.push(qe2(n471.ofProperty)), k4;
113753
113753
  }
113754
113754
  return [n471.ofProperty.type];
113755
113755
  }
113756
113756
  switch (n471.type) {
113757
113757
  case (DEFINED_DEFINITION_PROPERTY_TYPE.UNION, DEFINED_DEFINITION_PROPERTY_TYPE.XOR):
113758
- if ((c105 = n471.properties) === null || c105 === undefined ? undefined : c105.length) {
113759
- var E8, k4 = {}, x4 = [], w4 = h3(n471.properties);
113758
+ if ((u28 = n471.properties) === null || u28 === undefined ? undefined : u28.length) {
113759
+ var x4, w4 = {}, N6 = [], j4 = h3(n471.properties);
113760
113760
  try {
113761
- for (w4.s();!(E8 = w4.n()).done; ) {
113762
- var N6, j4 = E8.value, S4 = e(j4);
113763
- j4.ofProperty && S4.length > 1 && (S4 = [[S4[0]].concat(b4(S4.slice(1, S4.length))).join("")]), (N6 = x4).push.apply(N6, b4(S4));
113761
+ for (j4.s();!(x4 = j4.n()).done; ) {
113762
+ var S4, C4 = x4.value, O4 = e(C4);
113763
+ C4.ofProperty && O4.length > 1 && (O4 = [[O4[0]].concat(b4(O4.slice(1, O4.length))).join("")]), (S4 = N6).push.apply(S4, b4(O4));
113764
113764
  }
113765
113765
  } catch (e489) {
113766
- w4.e(e489);
113766
+ j4.e(e489);
113767
113767
  } finally {
113768
- w4.f();
113768
+ j4.f();
113769
113769
  }
113770
- var C4, O4 = false, P4 = h3(x4);
113770
+ var P4, _8 = false, R8 = h3(N6);
113771
113771
  try {
113772
- for (P4.s();!(C4 = P4.n()).done; ) {
113773
- var _8 = C4.value;
113774
- if (_8.trim() === "or") {
113775
- O4 = true;
113772
+ for (R8.s();!(P4 = R8.n()).done; ) {
113773
+ var A8 = P4.value;
113774
+ if (A8.trim() === "or") {
113775
+ _8 = true;
113776
113776
  break;
113777
113777
  }
113778
- k4[_8] = true;
113778
+ w4[A8] = true;
113779
113779
  }
113780
113780
  } catch (e489) {
113781
- P4.e(e489);
113781
+ R8.e(e489);
113782
113782
  } finally {
113783
- P4.f();
113783
+ R8.f();
113784
113784
  }
113785
- return O4 || (x4 = Object.keys(k4)), [x4.join(" or ")];
113785
+ return _8 || (N6 = Object.keys(w4)), [N6.join(" or ")];
113786
113786
  }
113787
113787
  break;
113788
113788
  case DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY:
@@ -113790,7 +113790,7 @@ function Me2(e488) {
113790
113790
  case DEFINED_DEFINITION_PROPERTY_TYPE.ENUM:
113791
113791
  return ["enum"];
113792
113792
  }
113793
- return ((u28 = n471.type) === null || u28 === undefined ? undefined : u28.startsWith("$$")) ? [] : [n471.type];
113793
+ return ((d29 = (s186 = n471.type) === null || s186 === undefined ? undefined : s186.startsWith) === null || d29 === undefined ? undefined : d29.call(s186, "$$")) ? [] : [n471.type];
113794
113794
  }(e488);
113795
113795
  return function(e489) {
113796
113796
  var n471;
@@ -113811,8 +113811,8 @@ function ze2(e488) {
113811
113811
  }
113812
113812
  }
113813
113813
  function qe2(e488) {
113814
- var n470 = Me2(e488);
113815
- return (n470 == null ? undefined : n470.startsWith("$$")) ? "" : n470;
113814
+ var n470, t481 = Me2(e488);
113815
+ return ((n470 = t481 == null ? undefined : t481.startsWith) === null || n470 === undefined ? undefined : n470.call(t481, "$$")) ? "" : t481;
113816
113816
  }
113817
113817
  function Ie2(e488) {
113818
113818
  var t481, r325, a443, o237;
@@ -113882,10 +113882,10 @@ function We2(e488) {
113882
113882
  function Ge2(e488) {
113883
113883
  return e488.hasOwnProperty("lineNumber");
113884
113884
  }
113885
- function Ke2(e488) {
113885
+ function Ye2(e488) {
113886
113886
  return typeof e488 == "string";
113887
113887
  }
113888
- var Ye2 = ["color"];
113888
+ var Ke2 = ["color"];
113889
113889
  function Xe2(e488, n470) {
113890
113890
  return Ze2.apply(this, arguments);
113891
113891
  }
@@ -113943,7 +113943,7 @@ function Qe2(e488) {
113943
113943
  return e489.map(function(e490) {
113944
113944
  if ("tokens" in e490)
113945
113945
  throw new Error("Shouldnt be groups");
113946
- var n471 = [e490.content], t482 = e490.style || {}, r326 = t482.color, a444 = I4(t482, Ye2);
113946
+ var n471 = [e490.content], t482 = e490.style || {}, r326 = t482.color, a444 = I4(t482, Ke2);
113947
113947
  return n471.push(r326), Object.keys(a444).length && n471.push(a444), n471;
113948
113948
  });
113949
113949
  }(t481.tokens);
@@ -113954,7 +113954,7 @@ function Qe2(e488) {
113954
113954
  function en(e488) {
113955
113955
  var n470 = [];
113956
113956
  return e488.forEach(function(e489) {
113957
- if (Ke2(e489))
113957
+ if (Ye2(e489))
113958
113958
  n470.push(e489);
113959
113959
  else {
113960
113960
  var t481 = function(e490) {
@@ -113972,9 +113972,9 @@ function en(e488) {
113972
113972
  function nn(e488) {
113973
113973
  var n470 = [];
113974
113974
  return e488.forEach(function(e489) {
113975
- if (Ke2(e489)) {
113975
+ if (Ye2(e489)) {
113976
113976
  var t481 = n470[n470.length - 1];
113977
- t481 && Ke2(t481) ? n470[n470.length - 1] += e489 : e489 !== "" && n470.push(e489);
113977
+ t481 && Ye2(t481) ? n470[n470.length - 1] += e489 : e489 !== "" && n470.push(e489);
113978
113978
  } else
113979
113979
  e489[0].length > 0 && n470.push(e489);
113980
113980
  }), n470;
@@ -114449,13 +114449,13 @@ var Wn = import_react5.default.createContext({ ref: { current: null }, setActive
114449
114449
  function Gn() {
114450
114450
  return import_react5.default.useContext(Wn);
114451
114451
  }
114452
- function Kn(e488) {
114452
+ function Yn(e488) {
114453
114453
  var r325 = e488.children, a443 = import_react5.useRef(null), o237 = import_react5.useState(""), c105 = M2(o237, 2), u28 = c105[0], s186 = c105[1], m82 = import_react5.useState(""), v4 = M2(m82, 2), p28 = v4[0], f4 = v4[1], h6 = Kt();
114454
114454
  return import_react5.useEffect(function() {
114455
114455
  f4(h6.value);
114456
- }, [h6.value]), import_react5.default.createElement(Wn, { value: { ref: a443, setActiveTab: s186, setActiveExample: f4 } }, import_react5.default.createElement(UXNode, { name: "CodeSample", props: { tab: u28, example: p28, code: "" } }, import_react5.default.createElement(Yn, null, r325)));
114456
+ }, [h6.value]), import_react5.default.createElement(Wn, { value: { ref: a443, setActiveTab: s186, setActiveExample: f4 } }, import_react5.default.createElement(UXNode, { name: "CodeSample", props: { tab: u28, example: p28, code: "" } }, import_react5.default.createElement(Kn, null, r325)));
114457
114457
  }
114458
- function Yn(e488) {
114458
+ function Kn(e488) {
114459
114459
  var n470, t481, r325 = e488.children;
114460
114460
  return n470 = Kt(), t481 = Wt(), import_react5.useEffect(function() {
114461
114461
  var e489 = n470.tabsRef.current;
@@ -114564,7 +114564,7 @@ function et2(e488) {
114564
114564
  var nt2 = import_react5.createContext({ lines: undefined, scroll: undefined });
114565
114565
  var tt2 = import_react5.default.createContext({});
114566
114566
  function rt2(e488) {
114567
- return import_react5.default.createElement(Kn, null, import_react5.default.createElement(Xn, { codeblocks: e488.codeblocks, theme: e488.theme }, import_react5.default.createElement(at3, Object.assign({}, e488))));
114567
+ return import_react5.default.createElement(Yn, null, import_react5.default.createElement(Xn, { codeblocks: e488.codeblocks, theme: e488.theme }, import_react5.default.createElement(at3, Object.assign({}, e488))));
114568
114568
  }
114569
114569
  function at3(e488) {
114570
114570
  var t481, r325 = import_react5.use(Hn).highlighted, o237 = import_react5.useContext(nt2);
@@ -114685,13 +114685,13 @@ function Ct2(n470) {
114685
114685
  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") : "";
114686
114686
  return e487.createElement(e487.Fragment, null, a443.map(function(n471, t482) {
114687
114687
  return e487.createElement(Ot2, { key: t482, reference: n471, index: t482, syntaxHighlight: r325 });
114688
- }), o237.length > 0 && e487.createElement(K4, { label: i314 }, o237.map(function(n471, t482) {
114688
+ }), o237.length > 0 && e487.createElement(Y4, { label: i314 }, o237.map(function(n471, t482) {
114689
114689
  return e487.createElement(Ot2, { key: t482 + 2, reference: n471, index: t482 + 2, syntaxHighlight: r325 });
114690
114690
  })));
114691
114691
  }
114692
114692
  function Ot2(n470) {
114693
114693
  var t481, r325 = n470.reference, a443 = n470.index, o237 = n470.syntaxHighlight;
114694
- 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(K4, { 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) {
114694
+ 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) {
114695
114695
  var r326;
114696
114696
  return e487.createElement(e487.Fragment, { key: t482 }, e487.createElement(nr, { size: 4 }, n471.title), e487.createElement(ar, null, e487.createElement(ar.Head, null, e487.createElement(ar.Tr, null, e487.createElement(ar.Th, null, "Name"), e487.createElement(ar.Th, null, "Type"), e487.createElement(ar.Th, null, "Description"))), e487.createElement(ar.Body, null, (r326 = n471.properties) === null || r326 === undefined ? undefined : r326.map(function(n472, t483) {
114697
114697
  return e487.createElement(ar.Tr, { key: t483 }, e487.createElement(ar.Td, null, e487.createElement(G4, null, n472.name)), e487.createElement(ar.Td, null, e487.createElement(G4, null, n472.type)), e487.createElement(ar.Td, { muted: true }, n472.description));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/mcp",
3
- "version": "0.0.0-build-ec04de2-20250930214016",
3
+ "version": "0.0.0-build-eeaeeda-20251001123000",
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-ec04de2-20250930214016",
29
- "@xyd-js/components": "0.0.0-build-ec04de2-20250930214016",
30
- "@xyd-js/core": "0.0.0-build-ec04de2-20250930214016",
31
- "@xyd-js/framework": "0.0.0-build-ec04de2-20250930214016",
32
- "@xyd-js/gql": "0.0.0-build-ec04de2-20250930214016",
33
- "@xyd-js/openapi": "0.0.0-build-ec04de2-20250930214016",
34
- "@xyd-js/plugins": "0.0.0-build-ec04de2-20250930214016",
35
- "@xyd-js/uniform": "0.0.0-build-ec04de2-20250930214016"
28
+ "@xyd-js/atlas": "0.0.0-build-eeaeeda-20251001123000",
29
+ "@xyd-js/components": "0.0.0-build-eeaeeda-20251001123000",
30
+ "@xyd-js/core": "0.0.0-build-eeaeeda-20251001123000",
31
+ "@xyd-js/framework": "0.0.0-build-eeaeeda-20251001123000",
32
+ "@xyd-js/gql": "0.0.0-build-eeaeeda-20251001123000",
33
+ "@xyd-js/openapi": "0.0.0-build-eeaeeda-20251001123000",
34
+ "@xyd-js/plugins": "0.0.0-build-eeaeeda-20251001123000",
35
+ "@xyd-js/uniform": "0.0.0-build-eeaeeda-20251001123000"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^20.9.0",