openuispec 0.1.8 → 0.1.10

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/cli/init.ts +28 -0
  2. package/package.json +3 -3
package/cli/init.ts CHANGED
@@ -181,6 +181,23 @@ If the package is not in node_modules, fetch the full reference from:
181
181
  - \`https://openuispec.rsteam.uz/llms-full.txt\` — complete spec + all JSON schemas in one file
182
182
  - \`https://openuispec.rsteam.uz/llms.txt\` — concise summary with links
183
183
 
184
+ ## Token file structure — root wrapper key required
185
+
186
+ Every token file must have a single root key matching the token type. Do NOT put properties at the top level.
187
+
188
+ \`\`\`yaml
189
+ # ✅ Correct — tokens/typography.yaml
190
+ typography:
191
+ font_family: ...
192
+ scale: ...
193
+
194
+ # ❌ Wrong — missing root wrapper key
195
+ font_family: ...
196
+ scale: ...
197
+ \`\`\`
198
+
199
+ Root keys: \`color\`, \`typography\`, \`spacing\`, \`elevation\`, \`motion\`, \`layout\`, \`themes\`, \`icons\`.
200
+
184
201
  ## JSON Schemas (validation & file structure)
185
202
 
186
203
  **IMPORTANT:** Before creating or editing any spec file, read the corresponding JSON Schema to understand the valid structure. Schemas are located in the installed package:
@@ -309,6 +326,17 @@ If the package is not in node_modules, fetch the full reference from:
309
326
  - \`https://openuispec.rsteam.uz/llms-full.txt\` — complete spec + all JSON schemas in one file
310
327
  - \`https://openuispec.rsteam.uz/llms.txt\` — concise summary with links
311
328
 
329
+ ## Token file structure — root wrapper key required
330
+ Every token file must have a single root key matching the token type. Do NOT put properties at the top level.
331
+ - \`tokens/color.yaml\` → root key: \`color\`
332
+ - \`tokens/typography.yaml\` → root key: \`typography\`
333
+ - \`tokens/spacing.yaml\` → root key: \`spacing\`
334
+ - \`tokens/elevation.yaml\` → root key: \`elevation\`
335
+ - \`tokens/motion.yaml\` → root key: \`motion\`
336
+ - \`tokens/layout.yaml\` → root key: \`layout\`
337
+ - \`tokens/themes.yaml\` → root key: \`themes\`
338
+ - \`tokens/icons.yaml\` → root key: \`icons\`
339
+
312
340
  ## JSON Schemas — read before creating spec files
313
341
  Before creating or editing any spec file, read the corresponding JSON Schema to understand the valid structure:
314
342
  - \`node_modules/openuispec/schema/openuispec.schema.json\` — root manifest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openuispec",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A semantic UI specification format for AI-native, platform-native app development",
@@ -34,13 +34,13 @@
34
34
  "drift:snapshot": "tsx drift/index.ts --snapshot --target"
35
35
  },
36
36
  "dependencies": {
37
+ "ajv": "^8.17.1",
38
+ "ajv-formats": "^3.0.1",
37
39
  "tsx": "^4.19.4",
38
40
  "yaml": "^2.7.1"
39
41
  },
40
42
  "devDependencies": {
41
43
  "@types/node": "^25.5.0",
42
- "ajv": "^8.17.1",
43
- "ajv-formats": "^3.0.1",
44
44
  "typescript": "^5.8.3"
45
45
  }
46
46
  }