rafters 0.2.3 → 0.3.1

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.
@@ -96,6 +96,18 @@ declare const PropFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
96
96
  prop: z.ZodString;
97
97
  }, z.core.$strip>;
98
98
  }, z.core.$strip>>;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ type: z.ZodLiteral<"boolean">;
101
+ default: z.ZodOptional<z.ZodBoolean>;
102
+ required: z.ZodOptional<z.ZodBoolean>;
103
+ }, z.core.$strip>, z.ZodObject<{
104
+ type: z.ZodLiteral<"string">;
105
+ default: z.ZodOptional<z.ZodString>;
106
+ required: z.ZodOptional<z.ZodBoolean>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ type: z.ZodLiteral<"number">;
109
+ default: z.ZodOptional<z.ZodNumber>;
110
+ required: z.ZodOptional<z.ZodBoolean>;
99
111
  }, z.core.$strip>, z.ZodObject<{
100
112
  type: z.ZodLiteral<"grammar">;
101
113
  grammar: z.ZodArray<z.ZodString>;
@@ -126,6 +138,18 @@ declare const FacetSchema: z.ZodObject<{
126
138
  prop: z.ZodString;
127
139
  }, z.core.$strip>;
128
140
  }, z.core.$strip>>;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ type: z.ZodLiteral<"boolean">;
143
+ default: z.ZodOptional<z.ZodBoolean>;
144
+ required: z.ZodOptional<z.ZodBoolean>;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ type: z.ZodLiteral<"string">;
147
+ default: z.ZodOptional<z.ZodString>;
148
+ required: z.ZodOptional<z.ZodBoolean>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ type: z.ZodLiteral<"number">;
151
+ default: z.ZodOptional<z.ZodNumber>;
152
+ required: z.ZodOptional<z.ZodBoolean>;
129
153
  }, z.core.$strip>, z.ZodObject<{
130
154
  type: z.ZodLiteral<"grammar">;
131
155
  grammar: z.ZodArray<z.ZodString>;
@@ -195,6 +219,18 @@ declare const RegistryItemSchema: z.ZodObject<{
195
219
  prop: z.ZodString;
196
220
  }, z.core.$strip>;
197
221
  }, z.core.$strip>>;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ type: z.ZodLiteral<"boolean">;
224
+ default: z.ZodOptional<z.ZodBoolean>;
225
+ required: z.ZodOptional<z.ZodBoolean>;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ type: z.ZodLiteral<"string">;
228
+ default: z.ZodOptional<z.ZodString>;
229
+ required: z.ZodOptional<z.ZodBoolean>;
230
+ }, z.core.$strip>, z.ZodObject<{
231
+ type: z.ZodLiteral<"number">;
232
+ default: z.ZodOptional<z.ZodNumber>;
233
+ required: z.ZodOptional<z.ZodBoolean>;
198
234
  }, z.core.$strip>, z.ZodObject<{
199
235
  type: z.ZodLiteral<"grammar">;
200
236
  grammar: z.ZodArray<z.ZodString>;
@@ -33,6 +33,21 @@ var PropFieldSchema = z.discriminatedUnion("type", [
33
33
  requires: z.object({ prop: z.string() })
34
34
  }).optional()
35
35
  }),
36
+ z.object({
37
+ type: z.literal("boolean"),
38
+ default: z.boolean().optional(),
39
+ required: z.boolean().optional()
40
+ }),
41
+ z.object({
42
+ type: z.literal("string"),
43
+ default: z.string().optional(),
44
+ required: z.boolean().optional()
45
+ }),
46
+ z.object({
47
+ type: z.literal("number"),
48
+ default: z.number().optional(),
49
+ required: z.boolean().optional()
50
+ }),
36
51
  z.object({
37
52
  // Matches #2072's PropNode 'grammar' arm exactly, so graph.ts's
38
53
  // describe(<id>.props.<name>.vocab) drill has real shape data.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rafters",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "Design Intelligence CLI. Scaffold tokens, import existing shadcn/Tailwind v4 sources, add components, and serve an MCP server so AI agents read decisions instead of guessing.",
5
5
  "homepage": "https://rafters.studio",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "scripts": {
31
- "build": "tsup && tsx scripts/generate-agent-contract.ts",
31
+ "build": "tsup && tsx scripts/sync-version.ts && tsx scripts/generate-agent-contract.ts",
32
32
  "dev": "tsup --watch",
33
33
  "test": "pnpm run test:bdd && pnpm run test:unit",
34
34
  "test:bdd": "bddgen && playwright test",