@aibloom/schemas 0.2.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.
Files changed (54) hide show
  1. package/README.md +20 -0
  2. package/dist/config.d.ts +124 -0
  3. package/dist/config.d.ts.map +1 -0
  4. package/dist/config.js +27 -0
  5. package/dist/config.js.map +1 -0
  6. package/dist/design-reference.d.ts +860 -0
  7. package/dist/design-reference.d.ts.map +1 -0
  8. package/dist/design-reference.js +147 -0
  9. package/dist/design-reference.js.map +1 -0
  10. package/dist/design-system.d.ts +191 -0
  11. package/dist/design-system.d.ts.map +1 -0
  12. package/dist/design-system.js +47 -0
  13. package/dist/design-system.js.map +1 -0
  14. package/dist/design-tokens.d.ts +318 -0
  15. package/dist/design-tokens.d.ts.map +1 -0
  16. package/dist/design-tokens.js +78 -0
  17. package/dist/design-tokens.js.map +1 -0
  18. package/dist/framework.d.ts +90 -0
  19. package/dist/framework.d.ts.map +1 -0
  20. package/dist/framework.js +34 -0
  21. package/dist/framework.js.map +1 -0
  22. package/dist/host-task.d.ts +197 -0
  23. package/dist/host-task.d.ts.map +1 -0
  24. package/dist/host-task.js +38 -0
  25. package/dist/host-task.js.map +1 -0
  26. package/dist/implementation-plan.d.ts +69 -0
  27. package/dist/implementation-plan.d.ts.map +1 -0
  28. package/dist/implementation-plan.js +21 -0
  29. package/dist/implementation-plan.js.map +1 -0
  30. package/dist/index.d.ts +13 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +13 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/page-shape.d.ts +334 -0
  35. package/dist/page-shape.d.ts.map +1 -0
  36. package/dist/page-shape.js +62 -0
  37. package/dist/page-shape.js.map +1 -0
  38. package/dist/product.d.ts +153 -0
  39. package/dist/product.d.ts.map +1 -0
  40. package/dist/product.js +32 -0
  41. package/dist/product.js.map +1 -0
  42. package/dist/state.d.ts +505 -0
  43. package/dist/state.d.ts.map +1 -0
  44. package/dist/state.js +115 -0
  45. package/dist/state.js.map +1 -0
  46. package/dist/verification.d.ts +197 -0
  47. package/dist/verification.d.ts.map +1 -0
  48. package/dist/verification.js +50 -0
  49. package/dist/verification.js.map +1 -0
  50. package/dist/visual-input.d.ts +130 -0
  51. package/dist/visual-input.d.ts.map +1 -0
  52. package/dist/visual-input.js +34 -0
  53. package/dist/visual-input.js.map +1 -0
  54. package/package.json +23 -0
@@ -0,0 +1,318 @@
1
+ import { z } from "zod";
2
+ export declare const ColorTokenSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ hex: z.ZodString;
5
+ role: z.ZodEnum<["canvas", "surface", "text", "muted-text", "accent", "decorative", "danger", "success", "border"]>;
6
+ usage: z.ZodString;
7
+ source: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ name: string;
10
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
11
+ hex: string;
12
+ usage: string;
13
+ source?: string | undefined;
14
+ }, {
15
+ name: string;
16
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
17
+ hex: string;
18
+ usage: string;
19
+ source?: string | undefined;
20
+ }>;
21
+ export declare const ColorSystemSchema: z.ZodObject<{
22
+ canvas: z.ZodArray<z.ZodString, "many">;
23
+ surface: z.ZodArray<z.ZodString, "many">;
24
+ text: z.ZodArray<z.ZodString, "many">;
25
+ mutedText: z.ZodArray<z.ZodString, "many">;
26
+ accent: z.ZodArray<z.ZodString, "many">;
27
+ decorative: z.ZodArray<z.ZodString, "many">;
28
+ danger: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29
+ success: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ saturationLevel: z.ZodEnum<["low", "medium", "high", "mixed"]>;
31
+ tokens: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
+ name: z.ZodString;
33
+ hex: z.ZodString;
34
+ role: z.ZodEnum<["canvas", "surface", "text", "muted-text", "accent", "decorative", "danger", "success", "border"]>;
35
+ usage: z.ZodString;
36
+ source: z.ZodOptional<z.ZodString>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ name: string;
39
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
40
+ hex: string;
41
+ usage: string;
42
+ source?: string | undefined;
43
+ }, {
44
+ name: string;
45
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
46
+ hex: string;
47
+ usage: string;
48
+ source?: string | undefined;
49
+ }>, "many">>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ canvas: string[];
52
+ surface: string[];
53
+ text: string[];
54
+ accent: string[];
55
+ decorative: string[];
56
+ mutedText: string[];
57
+ saturationLevel: "low" | "medium" | "high" | "mixed";
58
+ danger?: string[] | undefined;
59
+ success?: string[] | undefined;
60
+ tokens?: {
61
+ name: string;
62
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
63
+ hex: string;
64
+ usage: string;
65
+ source?: string | undefined;
66
+ }[] | undefined;
67
+ }, {
68
+ canvas: string[];
69
+ surface: string[];
70
+ text: string[];
71
+ accent: string[];
72
+ decorative: string[];
73
+ mutedText: string[];
74
+ saturationLevel: "low" | "medium" | "high" | "mixed";
75
+ danger?: string[] | undefined;
76
+ success?: string[] | undefined;
77
+ tokens?: {
78
+ name: string;
79
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
80
+ hex: string;
81
+ usage: string;
82
+ source?: string | undefined;
83
+ }[] | undefined;
84
+ }>;
85
+ export declare const FontSpecSchema: z.ZodObject<{
86
+ family: z.ZodString;
87
+ substitutes: z.ZodArray<z.ZodString, "many">;
88
+ weights: z.ZodArray<z.ZodString, "many">;
89
+ sizes: z.ZodArray<z.ZodString, "many">;
90
+ tone: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ family: string;
93
+ substitutes: string[];
94
+ weights: string[];
95
+ sizes: string[];
96
+ tone: string;
97
+ }, {
98
+ family: string;
99
+ substitutes: string[];
100
+ weights: string[];
101
+ sizes: string[];
102
+ tone: string;
103
+ }>;
104
+ export declare const TypographySystemSchema: z.ZodObject<{
105
+ display: z.ZodOptional<z.ZodObject<{
106
+ family: z.ZodString;
107
+ substitutes: z.ZodArray<z.ZodString, "many">;
108
+ weights: z.ZodArray<z.ZodString, "many">;
109
+ sizes: z.ZodArray<z.ZodString, "many">;
110
+ tone: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ family: string;
113
+ substitutes: string[];
114
+ weights: string[];
115
+ sizes: string[];
116
+ tone: string;
117
+ }, {
118
+ family: string;
119
+ substitutes: string[];
120
+ weights: string[];
121
+ sizes: string[];
122
+ tone: string;
123
+ }>>;
124
+ body: z.ZodOptional<z.ZodObject<{
125
+ family: z.ZodString;
126
+ substitutes: z.ZodArray<z.ZodString, "many">;
127
+ weights: z.ZodArray<z.ZodString, "many">;
128
+ sizes: z.ZodArray<z.ZodString, "many">;
129
+ tone: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ family: string;
132
+ substitutes: string[];
133
+ weights: string[];
134
+ sizes: string[];
135
+ tone: string;
136
+ }, {
137
+ family: string;
138
+ substitutes: string[];
139
+ weights: string[];
140
+ sizes: string[];
141
+ tone: string;
142
+ }>>;
143
+ mono: z.ZodOptional<z.ZodObject<{
144
+ family: z.ZodString;
145
+ substitutes: z.ZodArray<z.ZodString, "many">;
146
+ weights: z.ZodArray<z.ZodString, "many">;
147
+ sizes: z.ZodArray<z.ZodString, "many">;
148
+ tone: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ family: string;
151
+ substitutes: string[];
152
+ weights: string[];
153
+ sizes: string[];
154
+ tone: string;
155
+ }, {
156
+ family: string;
157
+ substitutes: string[];
158
+ weights: string[];
159
+ sizes: string[];
160
+ tone: string;
161
+ }>>;
162
+ rules: z.ZodArray<z.ZodString, "many">;
163
+ }, "strip", z.ZodTypeAny, {
164
+ rules: string[];
165
+ display?: {
166
+ family: string;
167
+ substitutes: string[];
168
+ weights: string[];
169
+ sizes: string[];
170
+ tone: string;
171
+ } | undefined;
172
+ body?: {
173
+ family: string;
174
+ substitutes: string[];
175
+ weights: string[];
176
+ sizes: string[];
177
+ tone: string;
178
+ } | undefined;
179
+ mono?: {
180
+ family: string;
181
+ substitutes: string[];
182
+ weights: string[];
183
+ sizes: string[];
184
+ tone: string;
185
+ } | undefined;
186
+ }, {
187
+ rules: string[];
188
+ display?: {
189
+ family: string;
190
+ substitutes: string[];
191
+ weights: string[];
192
+ sizes: string[];
193
+ tone: string;
194
+ } | undefined;
195
+ body?: {
196
+ family: string;
197
+ substitutes: string[];
198
+ weights: string[];
199
+ sizes: string[];
200
+ tone: string;
201
+ } | undefined;
202
+ mono?: {
203
+ family: string;
204
+ substitutes: string[];
205
+ weights: string[];
206
+ sizes: string[];
207
+ tone: string;
208
+ } | undefined;
209
+ }>;
210
+ export declare const SpacingSystemSchema: z.ZodObject<{
211
+ baseUnit: z.ZodOptional<z.ZodString>;
212
+ scale: z.ZodArray<z.ZodString, "many">;
213
+ density: z.ZodEnum<["compact", "comfortable", "spacious", "mixed", "unknown"]>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ scale: string[];
216
+ density: "unknown" | "mixed" | "compact" | "comfortable" | "spacious";
217
+ baseUnit?: string | undefined;
218
+ }, {
219
+ scale: string[];
220
+ density: "unknown" | "mixed" | "compact" | "comfortable" | "spacious";
221
+ baseUnit?: string | undefined;
222
+ }>;
223
+ export declare const RadiusSystemSchema: z.ZodObject<{
224
+ card: z.ZodOptional<z.ZodString>;
225
+ button: z.ZodOptional<z.ZodString>;
226
+ input: z.ZodOptional<z.ZodString>;
227
+ general: z.ZodOptional<z.ZodString>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ card?: string | undefined;
230
+ button?: string | undefined;
231
+ input?: string | undefined;
232
+ general?: string | undefined;
233
+ }, {
234
+ card?: string | undefined;
235
+ button?: string | undefined;
236
+ input?: string | undefined;
237
+ general?: string | undefined;
238
+ }>;
239
+ export declare const ElevationSystemSchema: z.ZodObject<{
240
+ shadowStyle: z.ZodEnum<["none", "subtle", "soft", "dramatic", "mixed"]>;
241
+ rules: z.ZodArray<z.ZodString, "many">;
242
+ }, "strip", z.ZodTypeAny, {
243
+ rules: string[];
244
+ shadowStyle: "mixed" | "none" | "subtle" | "soft" | "dramatic";
245
+ }, {
246
+ rules: string[];
247
+ shadowStyle: "mixed" | "none" | "subtle" | "soft" | "dramatic";
248
+ }>;
249
+ export declare const LayoutSystemSchema: z.ZodObject<{
250
+ maxWidth: z.ZodOptional<z.ZodString>;
251
+ sectionGap: z.ZodOptional<z.ZodString>;
252
+ heroPattern: z.ZodOptional<z.ZodString>;
253
+ gridPattern: z.ZodOptional<z.ZodString>;
254
+ appShellPattern: z.ZodOptional<z.ZodString>;
255
+ density: z.ZodOptional<z.ZodString>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ density?: string | undefined;
258
+ maxWidth?: string | undefined;
259
+ sectionGap?: string | undefined;
260
+ heroPattern?: string | undefined;
261
+ gridPattern?: string | undefined;
262
+ appShellPattern?: string | undefined;
263
+ }, {
264
+ density?: string | undefined;
265
+ maxWidth?: string | undefined;
266
+ sectionGap?: string | undefined;
267
+ heroPattern?: string | undefined;
268
+ gridPattern?: string | undefined;
269
+ appShellPattern?: string | undefined;
270
+ }>;
271
+ export declare const ImagerySystemSchema: z.ZodObject<{
272
+ allowed: z.ZodArray<z.ZodString, "many">;
273
+ forbidden: z.ZodArray<z.ZodString, "many">;
274
+ style: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ allowed: string[];
277
+ forbidden: string[];
278
+ style?: string | undefined;
279
+ }, {
280
+ allowed: string[];
281
+ forbidden: string[];
282
+ style?: string | undefined;
283
+ }>;
284
+ export declare const MotionSystemSchema: z.ZodObject<{
285
+ explicitRules: z.ZodArray<z.ZodString, "many">;
286
+ inferredTone: z.ZodString;
287
+ }, "strip", z.ZodTypeAny, {
288
+ explicitRules: string[];
289
+ inferredTone: string;
290
+ }, {
291
+ explicitRules: string[];
292
+ inferredTone: string;
293
+ }>;
294
+ export declare const EvidenceRefSchema: z.ZodObject<{
295
+ sourceId: z.ZodString;
296
+ section: z.ZodString;
297
+ quote: z.ZodOptional<z.ZodString>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ sourceId: string;
300
+ section: string;
301
+ quote?: string | undefined;
302
+ }, {
303
+ sourceId: string;
304
+ section: string;
305
+ quote?: string | undefined;
306
+ }>;
307
+ export type ColorToken = z.infer<typeof ColorTokenSchema>;
308
+ export type ColorSystem = z.infer<typeof ColorSystemSchema>;
309
+ export type FontSpec = z.infer<typeof FontSpecSchema>;
310
+ export type TypographySystem = z.infer<typeof TypographySystemSchema>;
311
+ export type SpacingSystem = z.infer<typeof SpacingSystemSchema>;
312
+ export type RadiusSystem = z.infer<typeof RadiusSystemSchema>;
313
+ export type ElevationSystem = z.infer<typeof ElevationSystemSchema>;
314
+ export type LayoutSystem = z.infer<typeof LayoutSystemSchema>;
315
+ export type ImagerySystem = z.infer<typeof ImagerySystemSchema>;
316
+ export type MotionSystem = z.infer<typeof MotionSystemSchema>;
317
+ export type EvidenceRef = z.infer<typeof EvidenceRefSchema>;
318
+ //# sourceMappingURL=design-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-tokens.d.ts","sourceRoot":"","sources":["../src/design-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AAIH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AA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,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { z } from "zod";
2
+ // ── Color ──
3
+ export const ColorTokenSchema = z.object({
4
+ name: z.string(),
5
+ hex: z.string().regex(/^#[0-9a-fA-F]{3,8}$/),
6
+ role: z.enum(["canvas", "surface", "text", "muted-text", "accent", "decorative", "danger", "success", "border"]),
7
+ usage: z.string(),
8
+ source: z.string().optional(),
9
+ });
10
+ export const ColorSystemSchema = z.object({
11
+ canvas: z.array(z.string()),
12
+ surface: z.array(z.string()),
13
+ text: z.array(z.string()),
14
+ mutedText: z.array(z.string()),
15
+ accent: z.array(z.string()),
16
+ decorative: z.array(z.string()),
17
+ danger: z.array(z.string()).optional(),
18
+ success: z.array(z.string()).optional(),
19
+ saturationLevel: z.enum(["low", "medium", "high", "mixed"]),
20
+ tokens: z.array(ColorTokenSchema).optional(),
21
+ });
22
+ // ── Typography ──
23
+ export const FontSpecSchema = z.object({
24
+ family: z.string(),
25
+ substitutes: z.array(z.string()),
26
+ weights: z.array(z.string()),
27
+ sizes: z.array(z.string()),
28
+ tone: z.string(),
29
+ });
30
+ export const TypographySystemSchema = z.object({
31
+ display: FontSpecSchema.optional(),
32
+ body: FontSpecSchema.optional(),
33
+ mono: FontSpecSchema.optional(),
34
+ rules: z.array(z.string()),
35
+ });
36
+ // ── Spacing & Shape ──
37
+ export const SpacingSystemSchema = z.object({
38
+ baseUnit: z.string().optional(),
39
+ scale: z.array(z.string()),
40
+ density: z.enum(["compact", "comfortable", "spacious", "mixed", "unknown"]),
41
+ });
42
+ export const RadiusSystemSchema = z.object({
43
+ card: z.string().optional(),
44
+ button: z.string().optional(),
45
+ input: z.string().optional(),
46
+ general: z.string().optional(),
47
+ });
48
+ export const ElevationSystemSchema = z.object({
49
+ shadowStyle: z.enum(["none", "subtle", "soft", "dramatic", "mixed"]),
50
+ rules: z.array(z.string()),
51
+ });
52
+ // ── Layout ──
53
+ export const LayoutSystemSchema = z.object({
54
+ maxWidth: z.string().optional(),
55
+ sectionGap: z.string().optional(),
56
+ heroPattern: z.string().optional(),
57
+ gridPattern: z.string().optional(),
58
+ appShellPattern: z.string().optional(),
59
+ density: z.string().optional(),
60
+ });
61
+ // ── Imagery ──
62
+ export const ImagerySystemSchema = z.object({
63
+ allowed: z.array(z.string()),
64
+ forbidden: z.array(z.string()),
65
+ style: z.string().optional(),
66
+ });
67
+ // ── Motion ──
68
+ export const MotionSystemSchema = z.object({
69
+ explicitRules: z.array(z.string()),
70
+ inferredTone: z.string(),
71
+ });
72
+ // ── Evidence / Source Tracking ──
73
+ export const EvidenceRefSchema = z.object({
74
+ sourceId: z.string(),
75
+ section: z.string(),
76
+ quote: z.string().optional(),
77
+ });
78
+ //# sourceMappingURL=design-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-tokens.js","sourceRoot":"","sources":["../src/design-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc;AAEd,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAChH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QA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,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
@@ -0,0 +1,90 @@
1
+ import { z } from "zod";
2
+ export declare const DetectionResultSchema: z.ZodObject<{
3
+ detected: z.ZodBoolean;
4
+ framework: z.ZodEnum<["next", "vite-react"]>;
5
+ confidence: z.ZodNumber;
6
+ evidence: z.ZodArray<z.ZodString, "many">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ framework: "next" | "vite-react";
9
+ detected: boolean;
10
+ confidence: number;
11
+ evidence: string[];
12
+ }, {
13
+ framework: "next" | "vite-react";
14
+ detected: boolean;
15
+ confidence: number;
16
+ evidence: string[];
17
+ }>;
18
+ export declare const ProjectContextSchema: z.ZodObject<{
19
+ projectRoot: z.ZodString;
20
+ framework: z.ZodEnum<["next", "vite-react"]>;
21
+ packageManager: z.ZodEnum<["pnpm", "npm", "yarn", "bun"]>;
22
+ sourceRoot: z.ZodString;
23
+ routeRoot: z.ZodString;
24
+ scripts: z.ZodRecord<z.ZodString, z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ framework: "next" | "vite-react";
27
+ packageManager: "pnpm" | "npm" | "yarn" | "bun";
28
+ projectRoot: string;
29
+ sourceRoot: string;
30
+ routeRoot: string;
31
+ scripts: Record<string, string>;
32
+ }, {
33
+ framework: "next" | "vite-react";
34
+ packageManager: "pnpm" | "npm" | "yarn" | "bun";
35
+ projectRoot: string;
36
+ sourceRoot: string;
37
+ routeRoot: string;
38
+ scripts: Record<string, string>;
39
+ }>;
40
+ export declare const ImplementationTargetSchema: z.ZodObject<{
41
+ route: z.ZodString;
42
+ files: z.ZodArray<z.ZodString, "many">;
43
+ entryFile: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ route: string;
46
+ files: string[];
47
+ entryFile: string;
48
+ }, {
49
+ route: string;
50
+ files: string[];
51
+ entryFile: string;
52
+ }>;
53
+ export declare const VerificationCommandSchema: z.ZodObject<{
54
+ checkType: z.ZodEnum<["lint", "typecheck", "unit_test", "build"]>;
55
+ command: z.ZodString;
56
+ args: z.ZodArray<z.ZodString, "many">;
57
+ required: z.ZodBoolean;
58
+ }, "strip", z.ZodTypeAny, {
59
+ command: string;
60
+ checkType: "lint" | "typecheck" | "build" | "unit_test";
61
+ args: string[];
62
+ required: boolean;
63
+ }, {
64
+ command: string;
65
+ checkType: "lint" | "typecheck" | "build" | "unit_test";
66
+ args: string[];
67
+ required: boolean;
68
+ }>;
69
+ export declare const DevServerConfigSchema: z.ZodObject<{
70
+ command: z.ZodString;
71
+ args: z.ZodArray<z.ZodString, "many">;
72
+ port: z.ZodNumber;
73
+ readyUrl: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ command: string;
76
+ args: string[];
77
+ port: number;
78
+ readyUrl: string;
79
+ }, {
80
+ command: string;
81
+ args: string[];
82
+ port: number;
83
+ readyUrl: string;
84
+ }>;
85
+ export type DetectionResult = z.infer<typeof DetectionResultSchema>;
86
+ export type ProjectContext = z.infer<typeof ProjectContextSchema>;
87
+ export type ImplementationTarget = z.infer<typeof ImplementationTargetSchema>;
88
+ export type VerificationCommand = z.infer<typeof VerificationCommandSchema>;
89
+ export type DevServerConfig = z.infer<typeof DevServerConfigSchema>;
90
+ //# sourceMappingURL=framework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ import { FrameworkIdSchema } from "./state.js";
3
+ export const DetectionResultSchema = z.object({
4
+ detected: z.boolean(),
5
+ framework: FrameworkIdSchema,
6
+ confidence: z.number().min(0).max(1),
7
+ evidence: z.array(z.string()),
8
+ });
9
+ export const ProjectContextSchema = z.object({
10
+ projectRoot: z.string(),
11
+ framework: FrameworkIdSchema,
12
+ packageManager: z.enum(["pnpm", "npm", "yarn", "bun"]),
13
+ sourceRoot: z.string(),
14
+ routeRoot: z.string(),
15
+ scripts: z.record(z.string()),
16
+ });
17
+ export const ImplementationTargetSchema = z.object({
18
+ route: z.string(),
19
+ files: z.array(z.string()),
20
+ entryFile: z.string(),
21
+ });
22
+ export const VerificationCommandSchema = z.object({
23
+ checkType: z.enum(["lint", "typecheck", "unit_test", "build"]),
24
+ command: z.string(),
25
+ args: z.array(z.string()),
26
+ required: z.boolean(),
27
+ });
28
+ export const DevServerConfigSchema = z.object({
29
+ command: z.string(),
30
+ args: z.array(z.string()),
31
+ port: z.number().int().positive(),
32
+ readyUrl: z.string(),
33
+ });
34
+ //# sourceMappingURL=framework.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework.js","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE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