@utopia-studio-design/design-system-cli 0.2.0 → 0.3.0

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/bin/utopia-ds.mjs CHANGED
@@ -4,7 +4,7 @@ import { dirname, join, resolve } from 'node:path'
4
4
  import { spawn } from 'node:child_process'
5
5
  import {
6
6
  capabilityManifest, envelope, getComponent, getDoc, getTemplate, getTheme,
7
- listComponents, listDocs, listTemplates, listThemes, repositoryDoctor, search,
7
+ listComponents, listDocs, listTemplates, listThemes, mcpLaunch, repositoryDoctor, search,
8
8
  } from '../lib/api.mjs'
9
9
 
10
10
  const args = process.argv.slice(2)
@@ -166,7 +166,7 @@ function init() {
166
166
  write(join(target, '.cursor/rules/ceramic-design-system.mdc'), `---\ndescription: Ceramic Design System rules\nalwaysApply: true\n---\n\n${rules}`)
167
167
  write(join(target, '.github/copilot-instructions.md'), rules)
168
168
  write(join(target, '.ceramic/config.json'), `${JSON.stringify({ apiVersion: 1, theme, arabicFriendly: true, source: '@utopia-studio-design/design-system' }, null, 2)}\n`)
169
- write(join(target, '.mcp.json'), `${JSON.stringify({ mcpServers: { ceramic: { command: 'npx', args: ['-y', '@utopia-studio-design/design-system-cli', 'mcp'] } } }, null, 2)}\n`)
169
+ write(join(target, '.mcp.json'), `${JSON.stringify({ mcpServers: { ceramic: mcpLaunch } }, null, 2)}\n`)
170
170
  output('init-result', { ok: true, target, theme, files: ['AGENTS.md', 'CLAUDE.md', '.cursor/rules/ceramic-design-system.mdc', '.github/copilot-instructions.md', '.ceramic/config.json', '.mcp.json'] },
171
171
  (data) => `Ceramic initialized in ${data.target}.\nCreated ${data.files.join(', ')}.`)
172
172
  }
@@ -207,10 +207,10 @@ function copyTemplateProject(entry) {
207
207
  const workspaceCli = resolve(process.cwd(), 'packages/design-system-cli')
208
208
  const designSystemDependency = existsSync(join(workspacePackage, 'package.json'))
209
209
  ? `file:${workspacePackage}`
210
- : '^0.2.0'
210
+ : '^0.3.0'
211
211
  const cliDependency = existsSync(join(workspaceCli, 'package.json'))
212
212
  ? `file:${workspaceCli}`
213
- : '^0.2.0'
213
+ : '^0.3.0'
214
214
  write(join(target, 'package.json'), `${JSON.stringify({
215
215
  name: packageName,
216
216
  private: true,
@@ -37,7 +37,7 @@ Every authoring command must support `--json`, `--dry-run`, deterministic output
37
37
  The generated `.mcp.json` works for clients that support project-local MCP configuration. Codex CLI can register the same stdio server explicitly:
38
38
 
39
39
  ```sh
40
- codex mcp add ceramic -- npx -y @utopia-studio-design/design-system-cli mcp
40
+ codex mcp add ceramic -- npx -y --package @utopia-studio-design/design-system-cli utopia-ds mcp
41
41
  ```
42
42
 
43
43
  The server exposes read-only design-system discovery. File-writing operations remain CLI commands with dry-run and explicit user control.
@@ -88,7 +88,7 @@ The MCP server exposes the same API as the CLI. A generated `.mcp.json` uses:
88
88
  "mcpServers": {
89
89
  "ceramic": {
90
90
  "command": "npx",
91
- "args": ["-y", "@utopia-studio-design/design-system-cli", "mcp"]
91
+ "args": ["-y", "--package", "@utopia-studio-design/design-system-cli", "utopia-ds", "mcp"]
92
92
  }
93
93
  }
94
94
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://utopia-studio.co/design-system/catalog.schema.json",
3
3
  "name": "Utopia Design System Catalog",
4
- "version": "0.1.0",
4
+ "version": "0.3.0",
5
5
  "purpose": "Standalone source of truth for the Utopia Design System home, docs, component catalog, templates, themes, and AI agent workflow.",
6
6
  "topLevelAreas": [
7
7
  {
@@ -13,8 +13,9 @@
13
13
  "id": "guide",
14
14
  "label": "Guide",
15
15
  "items": [
16
- "Getting Started",
17
- "Quick Start with AI",
16
+ "Getting Started",
17
+ "MCP Playground",
18
+ "Quick Start with AI",
18
19
  "Working with AI",
19
20
  "Principles",
20
21
  "Theme System",
@@ -52,7 +52,7 @@
52
52
  "semanticMappings": {
53
53
  "--background": "Special Black",
54
54
  "--foreground": "White",
55
- "--primary": "Brick Red",
55
+ "--primary": "Accessible Brick Red action tone (#B8472C); preserve #CC5536 as the brand primitive",
56
56
  "--secondary": "Light Grey",
57
57
  "--radius-control": "Square geometry",
58
58
  "--radius-surface": "Square geometry",
@@ -126,7 +126,7 @@
126
126
  "--foreground": "#FFFFFF",
127
127
  "--card": "#FFFFFF",
128
128
  "--card-foreground": "#3C3235",
129
- "--primary": "#CC5536",
129
+ "--primary": "#B8472C",
130
130
  "--primary-foreground": "#FFFFFF",
131
131
  "--secondary": "#EEEEEE",
132
132
  "--secondary-foreground": "#3C3235",
@@ -134,7 +134,7 @@
134
134
  "--muted-foreground": "#BDB7B9",
135
135
  "--border": "rgba(255,255,255,0.18)",
136
136
  "--input": "rgba(255,255,255,0.24)",
137
- "--ring": "#CC5536",
137
+ "--ring": "#D77A59",
138
138
  "--radius": "0px",
139
139
  "--radius-control": "0px",
140
140
  "--radius-surface": "0px",
package/lib/api.mjs CHANGED
@@ -8,7 +8,11 @@ const packagedDataRoot = join(packageRoot, 'data')
8
8
  const hasWorkspaceSource = existsSync(join(workspaceRoot, 'packages/design-system/src/manifests/components.json'))
9
9
 
10
10
  export const apiVersion = 1
11
- export const cliVersion = '0.2.0'
11
+ export const cliVersion = '0.3.0'
12
+ export const mcpLaunch = {
13
+ command: 'npx',
14
+ args: ['-y', '--package', '@utopia-studio-design/design-system-cli', 'utopia-ds', 'mcp'],
15
+ }
12
16
 
13
17
  export function paths(root = hasWorkspaceSource ? workspaceRoot : packagedDataRoot) {
14
18
  return {
@@ -118,8 +122,7 @@ export function capabilityManifest() {
118
122
  { name: 'mcp', args: [], flags: [], responseType: 'stdio-server' },
119
123
  ],
120
124
  mcp: {
121
- command: 'npx',
122
- args: ['-y', '@utopia-studio-design/design-system-cli', 'mcp'],
125
+ ...mcpLaunch,
123
126
  tools: ['search', 'list_components', 'get_component', 'list_templates', 'get_template', 'list_themes', 'get_theme', 'list_docs', 'get_docs', 'doctor'],
124
127
  },
125
128
  }
@@ -139,7 +142,10 @@ export function repositoryDoctor() {
139
142
  components: listComponents().length,
140
143
  templates: listTemplates().length,
141
144
  themes: listThemes().length,
142
- mcp: existsSync(join(packageRoot, 'bin/utopia-ds-mcp.mjs')),
145
+ mcp: existsSync(join(packageRoot, 'bin/utopia-ds-mcp.mjs'))
146
+ && mcpLaunch.command === 'npx'
147
+ && mcpLaunch.args.includes('utopia-ds')
148
+ && mcpLaunch.args.at(-1) === 'mcp',
143
149
  },
144
150
  missing,
145
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utopia-studio-design/design-system-cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "AI-readable CLI and MCP server for Ceramic Design System",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -13,11 +13,20 @@
13
13
  "./api": "./lib/api.mjs",
14
14
  "./mcp": "./bin/utopia-ds-mcp.mjs"
15
15
  },
16
- "files": ["bin", "lib", "data", "README.md"],
16
+ "files": [
17
+ "bin",
18
+ "lib",
19
+ "data",
20
+ "README.md"
21
+ ],
17
22
  "scripts": {
18
23
  "sync-data": "node scripts/sync-data.mjs",
19
24
  "prepack": "npm run sync-data"
20
25
  },
21
- "publishConfig": { "access": "public" },
22
- "engines": { "node": ">=20" }
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "engines": {
30
+ "node": ">=20"
31
+ }
23
32
  }