@getvitops/generator 0.4.0 → 0.5.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";
16
15
  bg: "bg";
17
16
  text: "text";
18
17
  border: "border";
19
18
  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";
105
104
  bg: "bg";
106
105
  text: "text";
107
106
  border: "border";
108
107
  outline: "outline";
108
+ fill: "fill";
109
109
  stroke: "stroke";
110
110
  }>>>;
111
111
  }, z.z.core.$strip>;
@@ -269,6 +269,31 @@ 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
+ //#endregion
279
+ //#region src/shared.d.ts
280
+ /**
281
+ * Data shared between the generator (`generate.ts`) and the docs bundle
282
+ * (`docs.ts`). Lives in its own module because `generate.ts` imports `docs.ts` —
283
+ * importing back the other way would be a cycle.
284
+ */
285
+ /**
286
+ * Pattern base geometry props → per-pattern override-hook shorthand. Each hook
287
+ * wraps the authored value (`padding: var(--p-button, 0.6em 1.2em)`) so a
288
+ * consumer restyles one pattern by setting one variable.
289
+ */
290
+ declare const BASE_HOOK: Record<string, string>;
291
+ /**
292
+ * Framework utility classes whose names collide with Tailwind's own defaults.
293
+ * The `tailwind` format strips any rule targeting these — Tailwind provides
294
+ * them, so consumers use Tailwind's utilities for these names instead.
295
+ */
296
+ declare const TW_CLASH: ReadonlySet<string>;
272
297
  //#endregion
273
298
  //#region src/site.d.ts
274
299
  declare const SiteConfigSchema: z.ZodMiniObject<{
@@ -509,11 +534,11 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
509
534
  }, z.z.core.$strip>]>>>;
510
535
  roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
511
536
  utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
512
- fill: "fill";
513
537
  bg: "bg";
514
538
  text: "text";
515
539
  border: "border";
516
540
  outline: "outline";
541
+ fill: "fill";
517
542
  stroke: "stroke";
518
543
  }>>>;
519
544
  }, z.z.core.$strip>>;
@@ -621,9 +646,9 @@ declare const SiteConfigSchema: z.ZodMiniObject<{
621
646
  number: "number";
622
647
  date: "date";
623
648
  file: "file";
649
+ text: "text";
624
650
  email: "email";
625
651
  url: "url";
626
- text: "text";
627
652
  tel: "tel";
628
653
  password: "password";
629
654
  textarea: "textarea";
@@ -1004,11 +1029,11 @@ declare const siteJsonSchema: {
1004
1029
  }, z.z.core.$strip>]>>>;
1005
1030
  roles: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
1006
1031
  utilities: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
1007
- fill: "fill";
1008
1032
  bg: "bg";
1009
1033
  text: "text";
1010
1034
  border: "border";
1011
1035
  outline: "outline";
1036
+ fill: "fill";
1012
1037
  stroke: "stroke";
1013
1038
  }>>>;
1014
1039
  }, z.z.core.$strip>>;
@@ -1116,9 +1141,9 @@ declare const siteJsonSchema: {
1116
1141
  number: "number";
1117
1142
  date: "date";
1118
1143
  file: "file";
1144
+ text: "text";
1119
1145
  email: "email";
1120
1146
  url: "url";
1121
- text: "text";
1122
1147
  tel: "tel";
1123
1148
  password: "password";
1124
1149
  textarea: "textarea";
@@ -1367,5 +1392,5 @@ declare function deepMerge(target: Record<string, unknown>, source: Record<strin
1367
1392
  */
1368
1393
  declare function defaultConfig(): DesignSystem;
1369
1394
  //#endregion
1370
- export { type DesignSystem, DesignSystemSchema, type Format, type GenerateOptions, type GenerateResult, SCHEMA_URL, SITE_SCHEMA_URL, type SiteConfig, SiteConfigSchema, type SiteValidationResult, type ValidationResult, deepMerge, defaultConfig, generate, generateDocs, jsonSchema, resolveSiteConfig, resolveTheme, siteJsonSchema, stripNulls, validate, validateSite };
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 };
1371
1396
  //# 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/site.ts","../src/index.ts"],"mappings":";;;cA4Ga,kBAAA,EAAkB,CAAA,CAAA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAYnB,YAAA,GAAe,CAAA,CAAE,KAAK,QAAQ,kBAAA;;;;;;cAsB7B,UAAA;;cAGA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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