@urbicon-ui/mcp-server 6.40.4 → 6.43.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urbicon-ui/mcp-server",
3
- "version": "6.40.4",
3
+ "version": "6.43.2",
4
4
  "description": "Model Context Protocol server exposing the Urbicon UI component catalog, recipes and design intelligence to LLM agents",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@modelcontextprotocol/sdk": "^1.29.0",
42
- "@urbicon-ui/design-content": "6.40.4",
43
- "@urbicon-ui/design-engine": "6.40.4",
42
+ "@urbicon-ui/design-content": "6.43.2",
43
+ "@urbicon-ui/design-engine": "6.43.2",
44
44
  "zod": "^4.3.6"
45
45
  },
46
46
  "devDependencies": {
@@ -38,9 +38,22 @@ function extractFirstExample(content: string): string | null {
38
38
  return match?.[1]?.trim() ?? null;
39
39
  }
40
40
 
41
- /** PascalCase component name to kebab-case slug */
41
+ /**
42
+ * PascalCase component name to kebab-case slug — must stay in lockstep with
43
+ * docs-gen's `toSlug` (`packages/docs-gen/src/utils/slug.ts`), which is what
44
+ * actually keys the catalog entries this hint points at.
45
+ *
46
+ * The acronym-run pass comes first: the last capital of a run of capitals
47
+ * starts the next word (`QRCode` → `qr-code`, `A2UIView` → `a2-ui-view`).
48
+ * Hyphenating every capital individually — the previous rule — produced
49
+ * `q-r-code`, a `get_component()` hint that resolves to nothing.
50
+ */
42
51
  function toSlug(name: string): string {
43
- return name.replace(/([A-Z])/g, (_, c, i) => (i > 0 ? '-' : '') + c.toLowerCase());
52
+ return name
53
+ .replace(/(\p{Lu}+)(\p{Lu}\p{Ll})/gu, '$1-$2')
54
+ .replace(/([\p{Ll}\p{N}])(\p{Lu})/gu, '$1-$2')
55
+ .replace(/[\s_]+/g, '-')
56
+ .toLowerCase();
44
57
  }
45
58
 
46
59
  /** Generate compact summary from catalog data + llm.txt */