@getvitops/generator 0.5.0 → 0.6.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/dist/index.d.mts CHANGED
@@ -12,11 +12,11 @@ declare const DesignSystemSchema: z.ZodMiniObject<{
12
12
  }, z.z.core.$strip>]>>;
13
13
  roles: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
14
14
  utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
15
+ fill: "fill";
15
16
  bg: "bg";
16
17
  text: "text";
17
18
  border: "border";
18
19
  outline: "outline";
19
- fill: "fill";
20
20
  stroke: "stroke";
21
21
  }>>>;
22
22
  }, z.z.core.$strip>;
@@ -101,11 +101,11 @@ declare const jsonSchema: {
101
101
  }, z.z.core.$strip>]>>;
102
102
  roles: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
103
103
  utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
104
+ fill: "fill";
104
105
  bg: "bg";
105
106
  text: "text";
106
107
  border: "border";
107
108
  outline: "outline";
108
- fill: "fill";
109
109
  stroke: "stroke";
110
110
  }>>>;
111
111
  }, z.z.core.$strip>;
@@ -269,12 +269,6 @@ declare function generate(options: GenerateOptions): Promise<GenerateResult>;
269
269
  * the caller writes it wherever the bundle should live (e.g. `<outDir>/docs`).
270
270
  */
271
271
  declare function generateDocs(ds: DesignSystem, assetsDir: string): Record<string, string>;
272
- /**
273
- * Render the generated agent skill (`SKILL.md`) that fronts the docs bundle.
274
- * The bundle is expected to live beside it under `references/` (the layout
275
- * `vitops agents` writes); paths in the body are relative to the skill dir.
276
- */
277
- declare function renderSkill(ds: DesignSystem): string;
278
272
  //#endregion
279
273
  //#region src/shared.d.ts
280
274
  /**
@@ -534,11 +528,11 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
534
528
  }, z.z.core.$strip>]>>>;
535
529
  roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
536
530
  utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
531
+ fill: "fill";
537
532
  bg: "bg";
538
533
  text: "text";
539
534
  border: "border";
540
535
  outline: "outline";
541
- fill: "fill";
542
536
  stroke: "stroke";
543
537
  }>>>;
544
538
  }, z.z.core.$strip>>;
@@ -646,9 +640,9 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
646
640
  number: "number";
647
641
  date: "date";
648
642
  file: "file";
649
- text: "text";
650
643
  email: "email";
651
644
  url: "url";
645
+ text: "text";
652
646
  tel: "tel";
653
647
  password: "password";
654
648
  textarea: "textarea";
@@ -1029,11 +1023,11 @@ declare const siteJsonSchema: {
1029
1023
  }, z.z.core.$strip>]>>>;
1030
1024
  roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
1031
1025
  utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
1026
+ fill: "fill";
1032
1027
  bg: "bg";
1033
1028
  text: "text";
1034
1029
  border: "border";
1035
1030
  outline: "outline";
1036
- fill: "fill";
1037
1031
  stroke: "stroke";
1038
1032
  }>>>;
1039
1033
  }, z.z.core.$strip>>;
@@ -1141,9 +1135,9 @@ declare const siteJsonSchema: {
1141
1135
  number: "number";
1142
1136
  date: "date";
1143
1137
  file: "file";
1144
- text: "text";
1145
1138
  email: "email";
1146
1139
  url: "url";
1140
+ text: "text";
1147
1141
  tel: "tel";
1148
1142
  password: "password";
1149
1143
  textarea: "textarea";
@@ -1392,5 +1386,5 @@ declare function deepMerge(target: Record<string, unknown>, source: Record<strin
1392
1386
  */
1393
1387
  declare function defaultConfig(): DesignSystem;
1394
1388
  //#endregion
1395
- export { BASE_HOOK, type DesignSystem, DesignSystemSchema, type Format, type GenerateOptions, type GenerateResult, SCHEMA_URL, SITE_SCHEMA_URL, type SiteConfig, SiteConfigSchema, type SiteValidationResult, TW_CLASH, type ValidationResult, deepMerge, defaultConfig, generate, generateDocs, jsonSchema, renderSkill, resolveSiteConfig, resolveTheme, siteJsonSchema, stripNulls, validate, validateSite };
1389
+ export { BASE_HOOK, type DesignSystem, DesignSystemSchema, type Format, type GenerateOptions, type GenerateResult, SCHEMA_URL, SITE_SCHEMA_URL, type SiteConfig, SiteConfigSchema, type SiteValidationResult, TW_CLASH, type ValidationResult, deepMerge, defaultConfig, generate, generateDocs, jsonSchema, resolveSiteConfig, resolveTheme, siteJsonSchema, stripNulls, validate, validateSite };
1396
1390
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/schema.ts","../src/generate.ts","../src/docs.ts","../src/shared.ts","../src/site.ts","../src/index.ts"],"mappings":";;;cAwOa,kBAAA,EAAkB,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BnB,YAAA,GAAe,CAAA,CAAE,KAAK,QAAQ,kBAAA;;;;;;cAsB7B,UAAA;;cAGA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKD,gBAAA;EACN,EAAA;EAAU,IAAA,EAAM,YAAA;EAAc,MAAA;AAAA;EAC9B,EAAA;EAAW,IAAA;EAAiB,MAAA,EAAQ,CAAA,CAAE,IAAA,CAAK,SAAS;AAAA;;iBAG1C,QAAA,CAAS,KAAA,YAAiB,gBAAgB;;;KCzQ9C,MAAA;AAAA,UAEK,eAAA;EDyMJ;ECvMX,KAAA,WAAgB,YAAA;;EAEhB,MAAA,GAAS,MAAM;;EAEf,MAAA;;EAEA,SAAA;AAAA;AAAA,UAGe,cAAA;EACf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;;;;;iBAW1C,YAAA,CAAa,KAAA,YAAiB,oBAAoB;AAAA,KAoF7D,kBAAA,GAAqB,OAAO,CAAC,YAAA;EAAkB,WAAA;EAAuB,OAAA;AAAA;;;;;;;iBAQ3D,YAAA,CACd,YAAA,EAAc,MAAA,SAAe,kBAAA,GAC7B,GAAA,WACC,YAAA;;;;;;;;;iBA4Ba,iBAAA,CAAkB,KAAA,WAAgB,OAAA,YAAyB,UAAU;;iBA4BrE,UAAA,CAAW,GAAY;;iBAevB,SAAA,CAAU,MAAA,EAAQ,MAAA,mBAAyB,MAAA,EAAQ,MAAM;;;;;;;;iBC50BzD,aAAA,IAAiB,YAAY"}
package/dist/index.mjs CHANGED
@@ -1461,54 +1461,6 @@ function generateDocs(ds, assetsDir) {
1461
1461
  "bricks/elements.md": renderElementsDoc(elementsDir)
1462
1462
  };
1463
1463
  }
1464
- /**
1465
- * Render the generated agent skill (`SKILL.md`) that fronts the docs bundle.
1466
- * The bundle is expected to live beside it under `references/` (the layout
1467
- * `vitops agents` writes); paths in the body are relative to the skill dir.
1468
- */
1469
- function renderSkill(ds) {
1470
- const patternNames = Object.keys(ds.patterns?.items ?? {});
1471
- return `---
1472
- name: vitops-design-system
1473
- description: >-
1474
- Work with this project's Vitops design system. Use when styling or authoring
1475
- pages or components (choosing utility/pattern classes, colours, spacing,
1476
- typography), when editing design-system.json (tokens, palette, patterns,
1477
- scales, animations), when generating output (vitops generate --format
1478
- tailwind|css|bricks), or when asking what the design system provides on a
1479
- given platform (Tailwind vs Bricks vs standalone CSS).
1480
- ---
1481
-
1482
- <!-- GENERATED by @getvitops/cli — do not hand-edit; regenerate with \`vitops agents\`. -->
1483
-
1484
- # Vitops design system
1485
-
1486
- This project is styled with the Vitops design system (\`@getvitops/*\`): a variable-driven
1487
- CSS framework generated from \`design-system.json\` (single source of truth — semantic
1488
- colour roles ${code(Object.keys(ds.colors.roles ?? {}))}, fluid type/space scales, component patterns
1489
- ${code(patternNames)}, animation effects).
1490
-
1491
- **Core rule:** prefer the framework's utility + component classes over hand-written CSS or
1492
- ad-hoc values — they encode the tokens, respond to dark mode, and update with the system.
1493
-
1494
- ## Which reference to read when
1495
-
1496
- - Choosing classes (layout, colour, type, spacing, animation, patterns) →
1497
- [references/css/classes.md](references/css/classes.md)
1498
- - Editing \`design-system.json\` (what a field means / what's valid) →
1499
- [references/authoring.md](references/authoring.md)
1500
- - Output questions per platform — what Tailwind provides natively (and which framework
1501
- utilities are deliberately NOT emitted for it), what Bricks' managers own, what the
1502
- standalone CSS bundle contains → [references/formats.md](references/formats.md)
1503
- - Understanding the systems (seeded OKLCH colour + automatic dark mode, fluid modular
1504
- scales, pattern CSS cascade/override hooks) → [references/concepts/](references/concepts/index.md)
1505
- - Building in Bricks Builder (custom elements + controls) →
1506
- [references/bricks/elements.md](references/bricks/elements.md)
1507
-
1508
- Regenerate this skill and its references after changing \`design-system.json\`:
1509
- \`vitops agents\`.
1510
- `;
1511
- }
1512
1464
 
1513
1465
  //#endregion
1514
1466
  //#region src/generate.ts
@@ -3230,5 +3182,5 @@ function defaultConfig() {
3230
3182
  }
3231
3183
 
3232
3184
  //#endregion
3233
- export { BASE_HOOK, DesignSystemSchema, SCHEMA_URL, SITE_SCHEMA_URL, SiteConfigSchema, TW_CLASH, deepMerge, defaultConfig, generate, generateDocs, jsonSchema, renderSkill, resolveSiteConfig, resolveTheme, siteJsonSchema, stripNulls, validate, validateSite };
3185
+ export { BASE_HOOK, DesignSystemSchema, SCHEMA_URL, SITE_SCHEMA_URL, SiteConfigSchema, TW_CLASH, deepMerge, defaultConfig, generate, generateDocs, jsonSchema, resolveSiteConfig, resolveTheme, siteJsonSchema, stripNulls, validate, validateSite };
3234
3186
  //# sourceMappingURL=index.mjs.map