@lism-css/mcp 0.2.1 → 0.2.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.
@@ -105,7 +105,8 @@
105
105
  { "name": "--bdrs--30", "value": "1rem", "description": "角丸 step 30(≒ 16px)" },
106
106
  { "name": "--bdrs--40", "value": "1.5rem", "description": "角丸 step 40(≒ 24px)" },
107
107
  { "name": "--bdrs--50", "value": "2rem", "description": "角丸 step 50(≒ 32px)" },
108
- { "name": "--bdrs--99", "value": "99rem", "description": "完全な丸 (pill)" }
108
+ { "name": "--bdrs--99", "value": "99rem", "description": "完全な丸 (pill)" },
109
+ { "name": "--bdrs--inner", "value": "calc(var(--bdrs, 0px) - var(--p, 0px))", "description": "内側の角丸(親要素に合わせる)" }
109
110
  ]
110
111
  },
111
112
  {
@@ -29,7 +29,10 @@ export function buildCssPropertyMap(categories) {
29
29
  if (p.cssProperty.startsWith('(class:'))
30
30
  continue;
31
31
  // "--hl (CSS変数)" → "--hl"
32
- const normalized = p.cssProperty.replace(/\s*\(.*\)$/, '').trim().toLowerCase();
32
+ const normalized = p.cssProperty
33
+ .replace(/\s*\(.*\)$/, '')
34
+ .trim()
35
+ .toLowerCase();
33
36
  if (!normalized)
34
37
  continue;
35
38
  const existing = map.get(normalized) ?? [];
@@ -46,7 +46,10 @@ function normalizeCssPropertyName(raw) {
46
46
  if (raw.startsWith('(class:'))
47
47
  return null;
48
48
  // "--hl (CSS変数)" → "--hl"
49
- return raw.replace(/\s*\(.*\)$/, '').trim().toLowerCase();
49
+ return raw
50
+ .replace(/\s*\(.*\)$/, '')
51
+ .trim()
52
+ .toLowerCase();
50
53
  }
51
54
  // ----------------------------------------------------------------
52
55
  // 値のマッピング
@@ -9,7 +9,10 @@ function normalizeCssProperty(raw) {
9
9
  if (classMatch)
10
10
  return classMatch[1].trim().toLowerCase();
11
11
  // "--hl (CSS変数)" → "--hl"
12
- return raw.replace(/\s*\(.*\)$/, '').trim().toLowerCase();
12
+ return raw
13
+ .replace(/\s*\(.*\)$/, '')
14
+ .trim()
15
+ .toLowerCase();
13
16
  }
14
17
  export function registerGetPropsSystem(server) {
15
18
  server.registerTool('get_props_system', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lism-css/mcp",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "MCP server for lism-css documentation and API reference.",
5
5
  "type": "module",
6
6
  "bin": {