@markdy/mcp-server 1.3.1 → 1.3.2

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 +8 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1815,7 +1815,8 @@ function parse(source, opts = {}) {
1815
1815
  fps: 60,
1816
1816
  theme: "paper",
1817
1817
  explicitTheme: false,
1818
- direction: "LR"
1818
+ direction: "LR",
1819
+ explicitDirection: false
1819
1820
  };
1820
1821
  const styles = {};
1821
1822
  const nodes = {};
@@ -1919,6 +1920,7 @@ function parse(source, opts = {}) {
1919
1920
  const inlineLayout = remainder.match(/\blayout\s+(LR|RL|TB|BT)\b/i);
1920
1921
  if (inlineLayout) {
1921
1922
  meta.direction = inlineLayout[1].toUpperCase();
1923
+ meta.explicitDirection = true;
1922
1924
  remainder = remainder.replace(/\blayout\s+(LR|RL|TB|BT)\b/i, " ");
1923
1925
  }
1924
1926
  const props = parseProps(remainder);
@@ -1940,8 +1942,10 @@ function parse(source, opts = {}) {
1940
1942
  const val = String(v).toLowerCase();
1941
1943
  meta.theme = val;
1942
1944
  meta.explicitTheme = val !== "auto";
1943
- } else if (k === "direction" || k === "layout") meta.direction = String(v).toUpperCase();
1944
- else if (PLAYER_FLAT_KEY_SET.has(k)) {
1945
+ } else if (k === "direction" || k === "layout") {
1946
+ meta.direction = String(v).toUpperCase();
1947
+ meta.explicitDirection = true;
1948
+ } else if (PLAYER_FLAT_KEY_SET.has(k)) {
1945
1949
  const error = applyPlayerSetting(meta.player ??= {}, "player", k, String(v));
1946
1950
  if (error) diagnostics.push({ severity: "warning", message: error, line: lineNo });
1947
1951
  } else if (k === "type") {
@@ -1978,6 +1982,7 @@ function parse(source, opts = {}) {
1978
1982
  }
1979
1983
  if (/^layout\s+(LR|RL|TB|BT)\b/i.test(line)) {
1980
1984
  meta.direction = line.split(/\s+/)[1].toUpperCase();
1985
+ meta.explicitDirection = true;
1981
1986
  i++;
1982
1987
  continue;
1983
1988
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/mcp-server",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Model Context Protocol server for Markdy diagram validation, transpilation, and generation.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@modelcontextprotocol/sdk": "^1.6.1",
42
- "@markdy/core": "1.3.1",
43
- "@markdy/compat": "1.3.1"
42
+ "@markdy/compat": "1.3.2",
43
+ "@markdy/core": "1.3.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^25.9.5",