@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.
- package/README.md +20 -0
- package/dist/config.d.ts +124 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +27 -0
- package/dist/config.js.map +1 -0
- package/dist/design-reference.d.ts +860 -0
- package/dist/design-reference.d.ts.map +1 -0
- package/dist/design-reference.js +147 -0
- package/dist/design-reference.js.map +1 -0
- package/dist/design-system.d.ts +191 -0
- package/dist/design-system.d.ts.map +1 -0
- package/dist/design-system.js +47 -0
- package/dist/design-system.js.map +1 -0
- package/dist/design-tokens.d.ts +318 -0
- package/dist/design-tokens.d.ts.map +1 -0
- package/dist/design-tokens.js +78 -0
- package/dist/design-tokens.js.map +1 -0
- package/dist/framework.d.ts +90 -0
- package/dist/framework.d.ts.map +1 -0
- package/dist/framework.js +34 -0
- package/dist/framework.js.map +1 -0
- package/dist/host-task.d.ts +197 -0
- package/dist/host-task.d.ts.map +1 -0
- package/dist/host-task.js +38 -0
- package/dist/host-task.js.map +1 -0
- package/dist/implementation-plan.d.ts +69 -0
- package/dist/implementation-plan.d.ts.map +1 -0
- package/dist/implementation-plan.js +21 -0
- package/dist/implementation-plan.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/page-shape.d.ts +334 -0
- package/dist/page-shape.d.ts.map +1 -0
- package/dist/page-shape.js +62 -0
- package/dist/page-shape.js.map +1 -0
- package/dist/product.d.ts +153 -0
- package/dist/product.d.ts.map +1 -0
- package/dist/product.js +32 -0
- package/dist/product.js.map +1 -0
- package/dist/state.d.ts +505 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +115 -0
- package/dist/state.js.map +1 -0
- package/dist/verification.d.ts +197 -0
- package/dist/verification.d.ts.map +1 -0
- package/dist/verification.js +50 -0
- package/dist/verification.js.map +1 -0
- package/dist/visual-input.d.ts +130 -0
- package/dist/visual-input.d.ts.map +1 -0
- package/dist/visual-input.js +34 -0
- package/dist/visual-input.js.map +1 -0
- package/package.json +23 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ArtifactReferenceSchema: z.ZodObject<{
|
|
3
|
+
kind: z.ZodEnum<["product", "design-system", "page-shape", "implementation-plan", "verification-report", "prototype"]>;
|
|
4
|
+
path: z.ZodString;
|
|
5
|
+
required: z.ZodBoolean;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
path: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
kind: "product" | "design-system" | "page-shape" | "implementation-plan" | "verification-report" | "prototype";
|
|
10
|
+
}, {
|
|
11
|
+
path: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
kind: "product" | "design-system" | "page-shape" | "implementation-plan" | "verification-report" | "prototype";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const ExecutionConstraintsSchema: z.ZodObject<{
|
|
16
|
+
projectRoot: z.ZodString;
|
|
17
|
+
allowedWritePaths: z.ZodArray<z.ZodString, "many">;
|
|
18
|
+
forbiddenPaths: z.ZodArray<z.ZodString, "many">;
|
|
19
|
+
maxRepairAttempts: z.ZodNumber;
|
|
20
|
+
requirePlanBeforeWrite: z.ZodBoolean;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
maxRepairAttempts: number;
|
|
23
|
+
projectRoot: string;
|
|
24
|
+
allowedWritePaths: string[];
|
|
25
|
+
forbiddenPaths: string[];
|
|
26
|
+
requirePlanBeforeWrite: boolean;
|
|
27
|
+
}, {
|
|
28
|
+
maxRepairAttempts: number;
|
|
29
|
+
projectRoot: string;
|
|
30
|
+
allowedWritePaths: string[];
|
|
31
|
+
forbiddenPaths: string[];
|
|
32
|
+
requirePlanBeforeWrite: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const ExpectedOutputSchema: z.ZodObject<{
|
|
35
|
+
kind: z.ZodEnum<["file-change", "task-result", "verification-pass"]>;
|
|
36
|
+
description: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
description: string;
|
|
39
|
+
kind: "file-change" | "task-result" | "verification-pass";
|
|
40
|
+
}, {
|
|
41
|
+
description: string;
|
|
42
|
+
kind: "file-change" | "task-result" | "verification-pass";
|
|
43
|
+
}>;
|
|
44
|
+
export declare const HostTaskSchema: z.ZodObject<{
|
|
45
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
46
|
+
id: z.ZodString;
|
|
47
|
+
type: z.ZodEnum<["implement-page", "repair"]>;
|
|
48
|
+
pageId: z.ZodString;
|
|
49
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
|
|
50
|
+
createdAt: z.ZodString;
|
|
51
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
52
|
+
kind: z.ZodEnum<["product", "design-system", "page-shape", "implementation-plan", "verification-report", "prototype"]>;
|
|
53
|
+
path: z.ZodString;
|
|
54
|
+
required: z.ZodBoolean;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
path: string;
|
|
57
|
+
required: boolean;
|
|
58
|
+
kind: "product" | "design-system" | "page-shape" | "implementation-plan" | "verification-report" | "prototype";
|
|
59
|
+
}, {
|
|
60
|
+
path: string;
|
|
61
|
+
required: boolean;
|
|
62
|
+
kind: "product" | "design-system" | "page-shape" | "implementation-plan" | "verification-report" | "prototype";
|
|
63
|
+
}>, "many">;
|
|
64
|
+
constraints: z.ZodObject<{
|
|
65
|
+
projectRoot: z.ZodString;
|
|
66
|
+
allowedWritePaths: z.ZodArray<z.ZodString, "many">;
|
|
67
|
+
forbiddenPaths: z.ZodArray<z.ZodString, "many">;
|
|
68
|
+
maxRepairAttempts: z.ZodNumber;
|
|
69
|
+
requirePlanBeforeWrite: z.ZodBoolean;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
maxRepairAttempts: number;
|
|
72
|
+
projectRoot: string;
|
|
73
|
+
allowedWritePaths: string[];
|
|
74
|
+
forbiddenPaths: string[];
|
|
75
|
+
requirePlanBeforeWrite: boolean;
|
|
76
|
+
}, {
|
|
77
|
+
maxRepairAttempts: number;
|
|
78
|
+
projectRoot: string;
|
|
79
|
+
allowedWritePaths: string[];
|
|
80
|
+
forbiddenPaths: string[];
|
|
81
|
+
requirePlanBeforeWrite: boolean;
|
|
82
|
+
}>;
|
|
83
|
+
expectedOutputs: z.ZodArray<z.ZodObject<{
|
|
84
|
+
kind: z.ZodEnum<["file-change", "task-result", "verification-pass"]>;
|
|
85
|
+
description: z.ZodString;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
description: string;
|
|
88
|
+
kind: "file-change" | "task-result" | "verification-pass";
|
|
89
|
+
}, {
|
|
90
|
+
description: string;
|
|
91
|
+
kind: "file-change" | "task-result" | "verification-pass";
|
|
92
|
+
}>, "many">;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
id: string;
|
|
95
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
96
|
+
type: "implement-page" | "repair";
|
|
97
|
+
createdAt: string;
|
|
98
|
+
schemaVersion: 2;
|
|
99
|
+
pageId: string;
|
|
100
|
+
inputs: {
|
|
101
|
+
path: string;
|
|
102
|
+
required: boolean;
|
|
103
|
+
kind: "product" | "design-system" | "page-shape" | "implementation-plan" | "verification-report" | "prototype";
|
|
104
|
+
}[];
|
|
105
|
+
constraints: {
|
|
106
|
+
maxRepairAttempts: number;
|
|
107
|
+
projectRoot: string;
|
|
108
|
+
allowedWritePaths: string[];
|
|
109
|
+
forbiddenPaths: string[];
|
|
110
|
+
requirePlanBeforeWrite: boolean;
|
|
111
|
+
};
|
|
112
|
+
expectedOutputs: {
|
|
113
|
+
description: string;
|
|
114
|
+
kind: "file-change" | "task-result" | "verification-pass";
|
|
115
|
+
}[];
|
|
116
|
+
}, {
|
|
117
|
+
id: string;
|
|
118
|
+
status: "completed" | "failed" | "pending" | "in_progress";
|
|
119
|
+
type: "implement-page" | "repair";
|
|
120
|
+
createdAt: string;
|
|
121
|
+
schemaVersion: 2;
|
|
122
|
+
pageId: string;
|
|
123
|
+
inputs: {
|
|
124
|
+
path: string;
|
|
125
|
+
required: boolean;
|
|
126
|
+
kind: "product" | "design-system" | "page-shape" | "implementation-plan" | "verification-report" | "prototype";
|
|
127
|
+
}[];
|
|
128
|
+
constraints: {
|
|
129
|
+
maxRepairAttempts: number;
|
|
130
|
+
projectRoot: string;
|
|
131
|
+
allowedWritePaths: string[];
|
|
132
|
+
forbiddenPaths: string[];
|
|
133
|
+
requirePlanBeforeWrite: boolean;
|
|
134
|
+
};
|
|
135
|
+
expectedOutputs: {
|
|
136
|
+
description: string;
|
|
137
|
+
kind: "file-change" | "task-result" | "verification-pass";
|
|
138
|
+
}[];
|
|
139
|
+
}>;
|
|
140
|
+
export declare const HostTaskResultSchema: z.ZodObject<{
|
|
141
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
142
|
+
taskId: z.ZodString;
|
|
143
|
+
status: z.ZodEnum<["completed", "failed"]>;
|
|
144
|
+
changedFiles: z.ZodArray<z.ZodObject<{
|
|
145
|
+
action: z.ZodEnum<["create", "modify", "delete"]>;
|
|
146
|
+
path: z.ZodString;
|
|
147
|
+
description: z.ZodString;
|
|
148
|
+
content: z.ZodOptional<z.ZodString>;
|
|
149
|
+
backupPath: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
path: string;
|
|
152
|
+
action: "create" | "modify" | "delete";
|
|
153
|
+
description: string;
|
|
154
|
+
content?: string | undefined;
|
|
155
|
+
backupPath?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
path: string;
|
|
158
|
+
action: "create" | "modify" | "delete";
|
|
159
|
+
description: string;
|
|
160
|
+
content?: string | undefined;
|
|
161
|
+
backupPath?: string | undefined;
|
|
162
|
+
}>, "many">;
|
|
163
|
+
notes: z.ZodArray<z.ZodString, "many">;
|
|
164
|
+
completedAt: z.ZodString;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
status: "completed" | "failed";
|
|
167
|
+
schemaVersion: 2;
|
|
168
|
+
completedAt: string;
|
|
169
|
+
notes: string[];
|
|
170
|
+
taskId: string;
|
|
171
|
+
changedFiles: {
|
|
172
|
+
path: string;
|
|
173
|
+
action: "create" | "modify" | "delete";
|
|
174
|
+
description: string;
|
|
175
|
+
content?: string | undefined;
|
|
176
|
+
backupPath?: string | undefined;
|
|
177
|
+
}[];
|
|
178
|
+
}, {
|
|
179
|
+
status: "completed" | "failed";
|
|
180
|
+
schemaVersion: 2;
|
|
181
|
+
completedAt: string;
|
|
182
|
+
notes: string[];
|
|
183
|
+
taskId: string;
|
|
184
|
+
changedFiles: {
|
|
185
|
+
path: string;
|
|
186
|
+
action: "create" | "modify" | "delete";
|
|
187
|
+
description: string;
|
|
188
|
+
content?: string | undefined;
|
|
189
|
+
backupPath?: string | undefined;
|
|
190
|
+
}[];
|
|
191
|
+
}>;
|
|
192
|
+
export type ArtifactReference = z.infer<typeof ArtifactReferenceSchema>;
|
|
193
|
+
export type ExecutionConstraints = z.infer<typeof ExecutionConstraintsSchema>;
|
|
194
|
+
export type ExpectedOutput = z.infer<typeof ExpectedOutputSchema>;
|
|
195
|
+
export type HostTask = z.infer<typeof HostTaskSchema>;
|
|
196
|
+
export type HostTaskResult = z.infer<typeof HostTaskResultSchema>;
|
|
197
|
+
//# sourceMappingURL=host-task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-task.d.ts","sourceRoot":"","sources":["../src/host-task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { FileChangeSchema, SCHEMA_VERSION } from "./state.js";
|
|
3
|
+
export const ArtifactReferenceSchema = z.object({
|
|
4
|
+
kind: z.enum(["product", "design-system", "page-shape", "implementation-plan", "verification-report", "prototype"]),
|
|
5
|
+
path: z.string(),
|
|
6
|
+
required: z.boolean(),
|
|
7
|
+
});
|
|
8
|
+
export const ExecutionConstraintsSchema = z.object({
|
|
9
|
+
projectRoot: z.string(),
|
|
10
|
+
allowedWritePaths: z.array(z.string()),
|
|
11
|
+
forbiddenPaths: z.array(z.string()),
|
|
12
|
+
maxRepairAttempts: z.number().int().min(0).max(3),
|
|
13
|
+
requirePlanBeforeWrite: z.boolean(),
|
|
14
|
+
});
|
|
15
|
+
export const ExpectedOutputSchema = z.object({
|
|
16
|
+
kind: z.enum(["file-change", "task-result", "verification-pass"]),
|
|
17
|
+
description: z.string(),
|
|
18
|
+
});
|
|
19
|
+
export const HostTaskSchema = z.object({
|
|
20
|
+
schemaVersion: z.literal(SCHEMA_VERSION),
|
|
21
|
+
id: z.string(),
|
|
22
|
+
type: z.enum(["implement-page", "repair"]),
|
|
23
|
+
pageId: z.string(),
|
|
24
|
+
status: z.enum(["pending", "in_progress", "completed", "failed"]),
|
|
25
|
+
createdAt: z.string(),
|
|
26
|
+
inputs: z.array(ArtifactReferenceSchema),
|
|
27
|
+
constraints: ExecutionConstraintsSchema,
|
|
28
|
+
expectedOutputs: z.array(ExpectedOutputSchema),
|
|
29
|
+
});
|
|
30
|
+
export const HostTaskResultSchema = z.object({
|
|
31
|
+
schemaVersion: z.literal(SCHEMA_VERSION),
|
|
32
|
+
taskId: z.string(),
|
|
33
|
+
status: z.enum(["completed", "failed"]),
|
|
34
|
+
changedFiles: z.array(FileChangeSchema),
|
|
35
|
+
notes: z.array(z.string()),
|
|
36
|
+
completedAt: z.string(),
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=host-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-task.js","sourceRoot":"","sources":["../src/host-task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,WAAW,CAAC,CAAC;IACnH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACjD,sBAAsB,EAAE,CAAC,CAAC,OAAO,EAAE;CACpC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,aAAa,EAAE,mBAAmB,CAAC,CAAC;IACjE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;IAC1C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IACjE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IACxC,WAAW,EAAE,0BAA0B;IACvC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACxC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACvC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ImplementationPlanSchema: z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
4
|
+
pageId: z.ZodString;
|
|
5
|
+
framework: z.ZodEnum<["next", "vite-react"]>;
|
|
6
|
+
targetFiles: z.ZodArray<z.ZodObject<{
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
purpose: z.ZodString;
|
|
9
|
+
action: z.ZodEnum<["create", "modify"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
path: string;
|
|
12
|
+
action: "create" | "modify";
|
|
13
|
+
purpose: string;
|
|
14
|
+
}, {
|
|
15
|
+
path: string;
|
|
16
|
+
action: "create" | "modify";
|
|
17
|
+
purpose: string;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
componentGraph: z.ZodArray<z.ZodObject<{
|
|
20
|
+
component: z.ZodString;
|
|
21
|
+
dependsOn: z.ZodArray<z.ZodString, "many">;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
component: string;
|
|
24
|
+
dependsOn: string[];
|
|
25
|
+
}, {
|
|
26
|
+
component: string;
|
|
27
|
+
dependsOn: string[];
|
|
28
|
+
}>, "many">;
|
|
29
|
+
dataPlan: z.ZodArray<z.ZodString, "many">;
|
|
30
|
+
statePlan: z.ZodArray<z.ZodString, "many">;
|
|
31
|
+
testPlan: z.ZodArray<z.ZodString, "many">;
|
|
32
|
+
risks: z.ZodArray<z.ZodString, "many">;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
framework: "next" | "vite-react";
|
|
35
|
+
schemaVersion: 2;
|
|
36
|
+
pageId: string;
|
|
37
|
+
risks: string[];
|
|
38
|
+
targetFiles: {
|
|
39
|
+
path: string;
|
|
40
|
+
action: "create" | "modify";
|
|
41
|
+
purpose: string;
|
|
42
|
+
}[];
|
|
43
|
+
componentGraph: {
|
|
44
|
+
component: string;
|
|
45
|
+
dependsOn: string[];
|
|
46
|
+
}[];
|
|
47
|
+
dataPlan: string[];
|
|
48
|
+
statePlan: string[];
|
|
49
|
+
testPlan: string[];
|
|
50
|
+
}, {
|
|
51
|
+
framework: "next" | "vite-react";
|
|
52
|
+
schemaVersion: 2;
|
|
53
|
+
pageId: string;
|
|
54
|
+
risks: string[];
|
|
55
|
+
targetFiles: {
|
|
56
|
+
path: string;
|
|
57
|
+
action: "create" | "modify";
|
|
58
|
+
purpose: string;
|
|
59
|
+
}[];
|
|
60
|
+
componentGraph: {
|
|
61
|
+
component: string;
|
|
62
|
+
dependsOn: string[];
|
|
63
|
+
}[];
|
|
64
|
+
dataPlan: string[];
|
|
65
|
+
statePlan: string[];
|
|
66
|
+
testPlan: string[];
|
|
67
|
+
}>;
|
|
68
|
+
export type ImplementationPlan = z.infer<typeof ImplementationPlanSchema>;
|
|
69
|
+
//# sourceMappingURL=implementation-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-plan.d.ts","sourceRoot":"","sources":["../src/implementation-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { FrameworkIdSchema, SCHEMA_VERSION } from "./state.js";
|
|
3
|
+
export const ImplementationPlanSchema = z.object({
|
|
4
|
+
schemaVersion: z.literal(SCHEMA_VERSION),
|
|
5
|
+
pageId: z.string(),
|
|
6
|
+
framework: FrameworkIdSchema,
|
|
7
|
+
targetFiles: z.array(z.object({
|
|
8
|
+
path: z.string(),
|
|
9
|
+
purpose: z.string(),
|
|
10
|
+
action: z.enum(["create", "modify"]),
|
|
11
|
+
})),
|
|
12
|
+
componentGraph: z.array(z.object({
|
|
13
|
+
component: z.string(),
|
|
14
|
+
dependsOn: z.array(z.string()),
|
|
15
|
+
})),
|
|
16
|
+
dataPlan: z.array(z.string()),
|
|
17
|
+
statePlan: z.array(z.string()),
|
|
18
|
+
testPlan: z.array(z.string()),
|
|
19
|
+
risks: z.array(z.string()),
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=implementation-plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-plan.js","sourceRoot":"","sources":["../src/implementation-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACxC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,iBAAiB;IAC5B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;KACrC,CAAC,CAAC;IACH,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAC/B,CAAC,CAAC;IACH,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./design-tokens.js";
|
|
2
|
+
export * from "./design-reference.js";
|
|
3
|
+
export * from "./design-system.js";
|
|
4
|
+
export * from "./product.js";
|
|
5
|
+
export * from "./page-shape.js";
|
|
6
|
+
export * from "./visual-input.js";
|
|
7
|
+
export * from "./config.js";
|
|
8
|
+
export * from "./framework.js";
|
|
9
|
+
export * from "./host-task.js";
|
|
10
|
+
export * from "./implementation-plan.js";
|
|
11
|
+
export * from "./verification.js";
|
|
12
|
+
export * from "./state.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./design-tokens.js";
|
|
2
|
+
export * from "./design-reference.js";
|
|
3
|
+
export * from "./design-system.js";
|
|
4
|
+
export * from "./product.js";
|
|
5
|
+
export * from "./page-shape.js";
|
|
6
|
+
export * from "./visual-input.js";
|
|
7
|
+
export * from "./config.js";
|
|
8
|
+
export * from "./framework.js";
|
|
9
|
+
export * from "./host-task.js";
|
|
10
|
+
export * from "./implementation-plan.js";
|
|
11
|
+
export * from "./verification.js";
|
|
12
|
+
export * from "./state.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|