@thanh01.pmt/domain-kit 0.1.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 (108) hide show
  1. package/README.md +1101 -0
  2. package/dist/assembly/index.cjs +213 -0
  3. package/dist/assembly/index.cjs.map +1 -0
  4. package/dist/assembly/index.d.cts +66 -0
  5. package/dist/assembly/index.d.ts +66 -0
  6. package/dist/assembly/index.mjs +4 -0
  7. package/dist/assembly/index.mjs.map +1 -0
  8. package/dist/chunk-3H2HX7PR.mjs +324 -0
  9. package/dist/chunk-3H2HX7PR.mjs.map +1 -0
  10. package/dist/chunk-3VVPSRAM.mjs +1297 -0
  11. package/dist/chunk-3VVPSRAM.mjs.map +1 -0
  12. package/dist/chunk-DRVOV5ZD.mjs +314 -0
  13. package/dist/chunk-DRVOV5ZD.mjs.map +1 -0
  14. package/dist/chunk-F4RZNBOE.mjs +3 -0
  15. package/dist/chunk-F4RZNBOE.mjs.map +1 -0
  16. package/dist/chunk-GEUDHZE7.mjs +446 -0
  17. package/dist/chunk-GEUDHZE7.mjs.map +1 -0
  18. package/dist/chunk-HH4UX65C.mjs +100 -0
  19. package/dist/chunk-HH4UX65C.mjs.map +1 -0
  20. package/dist/chunk-KMYENICQ.mjs +3 -0
  21. package/dist/chunk-KMYENICQ.mjs.map +1 -0
  22. package/dist/chunk-KNDBODUQ.mjs +153 -0
  23. package/dist/chunk-KNDBODUQ.mjs.map +1 -0
  24. package/dist/chunk-MM2RWYNW.mjs +3 -0
  25. package/dist/chunk-MM2RWYNW.mjs.map +1 -0
  26. package/dist/chunk-MOKNFLUD.mjs +851 -0
  27. package/dist/chunk-MOKNFLUD.mjs.map +1 -0
  28. package/dist/chunk-ONQHJ4OH.mjs +211 -0
  29. package/dist/chunk-ONQHJ4OH.mjs.map +1 -0
  30. package/dist/chunk-PM42MMDJ.mjs +516 -0
  31. package/dist/chunk-PM42MMDJ.mjs.map +1 -0
  32. package/dist/chunk-RKRNOVKO.mjs +166 -0
  33. package/dist/chunk-RKRNOVKO.mjs.map +1 -0
  34. package/dist/chunk-VFART56O.mjs +884 -0
  35. package/dist/chunk-VFART56O.mjs.map +1 -0
  36. package/dist/chunk-XMHKWHVK.mjs +218 -0
  37. package/dist/chunk-XMHKWHVK.mjs.map +1 -0
  38. package/dist/conceptEscalator-YfMKIKCZ.d.ts +40 -0
  39. package/dist/conceptEscalator-ltRLtPhf.d.cts +40 -0
  40. package/dist/concepts/index.cjs +155 -0
  41. package/dist/concepts/index.cjs.map +1 -0
  42. package/dist/concepts/index.d.cts +79 -0
  43. package/dist/concepts/index.d.ts +79 -0
  44. package/dist/concepts/index.mjs +4 -0
  45. package/dist/concepts/index.mjs.map +1 -0
  46. package/dist/curriculumFeedSchema-TEeQg2bY.d.cts +549 -0
  47. package/dist/curriculumFeedSchema-TEeQg2bY.d.ts +549 -0
  48. package/dist/detector/index.cjs +889 -0
  49. package/dist/detector/index.cjs.map +1 -0
  50. package/dist/detector/index.d.cts +112 -0
  51. package/dist/detector/index.d.ts +112 -0
  52. package/dist/detector/index.mjs +3 -0
  53. package/dist/detector/index.mjs.map +1 -0
  54. package/dist/domainProfileSchema-CwT3Ffsw.d.cts +105 -0
  55. package/dist/domainProfileSchema-CwT3Ffsw.d.ts +105 -0
  56. package/dist/extractors/index.cjs +387 -0
  57. package/dist/extractors/index.cjs.map +1 -0
  58. package/dist/extractors/index.d.cts +46 -0
  59. package/dist/extractors/index.d.ts +46 -0
  60. package/dist/extractors/index.mjs +4 -0
  61. package/dist/extractors/index.mjs.map +1 -0
  62. package/dist/feed/index.cjs +421 -0
  63. package/dist/feed/index.cjs.map +1 -0
  64. package/dist/feed/index.d.cts +23 -0
  65. package/dist/feed/index.d.ts +23 -0
  66. package/dist/feed/index.mjs +4 -0
  67. package/dist/feed/index.mjs.map +1 -0
  68. package/dist/graph/index.cjs +2167 -0
  69. package/dist/graph/index.cjs.map +1 -0
  70. package/dist/graph/index.d.cts +226 -0
  71. package/dist/graph/index.d.ts +226 -0
  72. package/dist/graph/index.mjs +4 -0
  73. package/dist/graph/index.mjs.map +1 -0
  74. package/dist/graphVerifier-DsTP9uAN.d.ts +37 -0
  75. package/dist/graphVerifier-QjgDAJce.d.cts +37 -0
  76. package/dist/hybridGraphSchema-BCgXicgA.d.cts +2840 -0
  77. package/dist/hybridGraphSchema-BCgXicgA.d.ts +2840 -0
  78. package/dist/index.cjs +5539 -0
  79. package/dist/index.cjs.map +1 -0
  80. package/dist/index.d.cts +18 -0
  81. package/dist/index.d.ts +18 -0
  82. package/dist/index.mjs +17 -0
  83. package/dist/index.mjs.map +1 -0
  84. package/dist/keywordExtractor-CKaXqSku.d.ts +34 -0
  85. package/dist/keywordExtractor-zPAz2isq.d.cts +34 -0
  86. package/dist/llmClient-ysPhLjcH.d.cts +16 -0
  87. package/dist/llmClient-ysPhLjcH.d.ts +16 -0
  88. package/dist/parsers/index.cjs +323 -0
  89. package/dist/parsers/index.cjs.map +1 -0
  90. package/dist/parsers/index.d.cts +98 -0
  91. package/dist/parsers/index.d.ts +98 -0
  92. package/dist/parsers/index.mjs +4 -0
  93. package/dist/parsers/index.mjs.map +1 -0
  94. package/dist/pipeline/index.cjs +2166 -0
  95. package/dist/pipeline/index.cjs.map +1 -0
  96. package/dist/pipeline/index.d.cts +45 -0
  97. package/dist/pipeline/index.d.ts +45 -0
  98. package/dist/pipeline/index.mjs +8 -0
  99. package/dist/pipeline/index.mjs.map +1 -0
  100. package/dist/projectGraphSchema-DnD7orZV.d.cts +2581 -0
  101. package/dist/projectGraphSchema-DnD7orZV.d.ts +2581 -0
  102. package/dist/schemas/index.cjs +675 -0
  103. package/dist/schemas/index.cjs.map +1 -0
  104. package/dist/schemas/index.d.cts +253 -0
  105. package/dist/schemas/index.d.ts +253 -0
  106. package/dist/schemas/index.mjs +4 -0
  107. package/dist/schemas/index.mjs.map +1 -0
  108. package/package.json +71 -0
@@ -0,0 +1,2581 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const StepEffortSchema: z.ZodObject<{
4
+ estimated_minutes: z.ZodOptional<z.ZodNumber>;
5
+ complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
6
+ concepts_count: z.ZodOptional<z.ZodNumber>;
7
+ files_touched: z.ZodOptional<z.ZodNumber>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ estimated_minutes?: number | undefined;
10
+ complexity?: "low" | "medium" | "high" | undefined;
11
+ concepts_count?: number | undefined;
12
+ files_touched?: number | undefined;
13
+ }, {
14
+ estimated_minutes?: number | undefined;
15
+ complexity?: "low" | "medium" | "high" | undefined;
16
+ concepts_count?: number | undefined;
17
+ files_touched?: number | undefined;
18
+ }>;
19
+ declare const StepOutcomeSchema: z.ZodObject<{
20
+ user_visible: z.ZodOptional<z.ZodString>;
21
+ technical: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ user_visible?: string | undefined;
24
+ technical?: string | string[] | undefined;
25
+ }, {
26
+ user_visible?: string | undefined;
27
+ technical?: string | string[] | undefined;
28
+ }>;
29
+ declare const StepSchema: z.ZodObject<{
30
+ id: z.ZodString;
31
+ sequence: z.ZodNumber;
32
+ name: z.ZodString;
33
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
34
+ files: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
35
+ api_usage: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
36
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
37
+ completion_level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["base", "mvp", "extend", "polish"]>>>;
38
+ platform: z.ZodDefault<z.ZodOptional<z.ZodString>>;
39
+ intent: z.ZodDefault<z.ZodOptional<z.ZodString>>;
40
+ outcome: z.ZodOptional<z.ZodObject<{
41
+ user_visible: z.ZodOptional<z.ZodString>;
42
+ technical: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ user_visible?: string | undefined;
45
+ technical?: string | string[] | undefined;
46
+ }, {
47
+ user_visible?: string | undefined;
48
+ technical?: string | string[] | undefined;
49
+ }>>;
50
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
51
+ effort: z.ZodOptional<z.ZodObject<{
52
+ estimated_minutes: z.ZodOptional<z.ZodNumber>;
53
+ complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
54
+ concepts_count: z.ZodOptional<z.ZodNumber>;
55
+ files_touched: z.ZodOptional<z.ZodNumber>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ estimated_minutes?: number | undefined;
58
+ complexity?: "low" | "medium" | "high" | undefined;
59
+ concepts_count?: number | undefined;
60
+ files_touched?: number | undefined;
61
+ }, {
62
+ estimated_minutes?: number | undefined;
63
+ complexity?: "low" | "medium" | "high" | undefined;
64
+ concepts_count?: number | undefined;
65
+ files_touched?: number | undefined;
66
+ }>>;
67
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
68
+ concept_codes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ id: string;
71
+ sequence: number;
72
+ name: string;
73
+ description: string;
74
+ files: string[];
75
+ api_usage: string[];
76
+ keywords: string[];
77
+ completion_level: "base" | "mvp" | "extend" | "polish";
78
+ platform: string;
79
+ intent: string;
80
+ acceptance: string[];
81
+ requirement_ids: string[];
82
+ concept_codes: string[];
83
+ outcome?: {
84
+ user_visible?: string | undefined;
85
+ technical?: string | string[] | undefined;
86
+ } | undefined;
87
+ effort?: {
88
+ estimated_minutes?: number | undefined;
89
+ complexity?: "low" | "medium" | "high" | undefined;
90
+ concepts_count?: number | undefined;
91
+ files_touched?: number | undefined;
92
+ } | undefined;
93
+ }, {
94
+ id: string;
95
+ sequence: number;
96
+ name: string;
97
+ description?: string | undefined;
98
+ files?: string[] | undefined;
99
+ api_usage?: string[] | undefined;
100
+ keywords?: string[] | undefined;
101
+ completion_level?: "base" | "mvp" | "extend" | "polish" | undefined;
102
+ platform?: string | undefined;
103
+ intent?: string | undefined;
104
+ outcome?: {
105
+ user_visible?: string | undefined;
106
+ technical?: string | string[] | undefined;
107
+ } | undefined;
108
+ acceptance?: string[] | undefined;
109
+ effort?: {
110
+ estimated_minutes?: number | undefined;
111
+ complexity?: "low" | "medium" | "high" | undefined;
112
+ concepts_count?: number | undefined;
113
+ files_touched?: number | undefined;
114
+ } | undefined;
115
+ requirement_ids?: string[] | undefined;
116
+ concept_codes?: string[] | undefined;
117
+ }>;
118
+ type Step = z.infer<typeof StepSchema>;
119
+ declare const FeatureSchema: z.ZodObject<{
120
+ id: z.ZodString;
121
+ name: z.ZodString;
122
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
123
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
124
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["core", "supporting", "polish"]>>>;
125
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["PLANNED", "IMPLEMENTED", "IN_PROGRESS"]>>>;
126
+ platform: z.ZodDefault<z.ZodOptional<z.ZodString>>;
127
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
128
+ journey_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
129
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
130
+ api_usage: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
131
+ steps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
132
+ id: z.ZodString;
133
+ sequence: z.ZodNumber;
134
+ name: z.ZodString;
135
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
136
+ files: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
137
+ api_usage: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
138
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
139
+ completion_level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["base", "mvp", "extend", "polish"]>>>;
140
+ platform: z.ZodDefault<z.ZodOptional<z.ZodString>>;
141
+ intent: z.ZodDefault<z.ZodOptional<z.ZodString>>;
142
+ outcome: z.ZodOptional<z.ZodObject<{
143
+ user_visible: z.ZodOptional<z.ZodString>;
144
+ technical: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ user_visible?: string | undefined;
147
+ technical?: string | string[] | undefined;
148
+ }, {
149
+ user_visible?: string | undefined;
150
+ technical?: string | string[] | undefined;
151
+ }>>;
152
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
153
+ effort: z.ZodOptional<z.ZodObject<{
154
+ estimated_minutes: z.ZodOptional<z.ZodNumber>;
155
+ complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
156
+ concepts_count: z.ZodOptional<z.ZodNumber>;
157
+ files_touched: z.ZodOptional<z.ZodNumber>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ estimated_minutes?: number | undefined;
160
+ complexity?: "low" | "medium" | "high" | undefined;
161
+ concepts_count?: number | undefined;
162
+ files_touched?: number | undefined;
163
+ }, {
164
+ estimated_minutes?: number | undefined;
165
+ complexity?: "low" | "medium" | "high" | undefined;
166
+ concepts_count?: number | undefined;
167
+ files_touched?: number | undefined;
168
+ }>>;
169
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
170
+ concept_codes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ id: string;
173
+ sequence: number;
174
+ name: string;
175
+ description: string;
176
+ files: string[];
177
+ api_usage: string[];
178
+ keywords: string[];
179
+ completion_level: "base" | "mvp" | "extend" | "polish";
180
+ platform: string;
181
+ intent: string;
182
+ acceptance: string[];
183
+ requirement_ids: string[];
184
+ concept_codes: string[];
185
+ outcome?: {
186
+ user_visible?: string | undefined;
187
+ technical?: string | string[] | undefined;
188
+ } | undefined;
189
+ effort?: {
190
+ estimated_minutes?: number | undefined;
191
+ complexity?: "low" | "medium" | "high" | undefined;
192
+ concepts_count?: number | undefined;
193
+ files_touched?: number | undefined;
194
+ } | undefined;
195
+ }, {
196
+ id: string;
197
+ sequence: number;
198
+ name: string;
199
+ description?: string | undefined;
200
+ files?: string[] | undefined;
201
+ api_usage?: string[] | undefined;
202
+ keywords?: string[] | undefined;
203
+ completion_level?: "base" | "mvp" | "extend" | "polish" | undefined;
204
+ platform?: string | undefined;
205
+ intent?: string | undefined;
206
+ outcome?: {
207
+ user_visible?: string | undefined;
208
+ technical?: string | string[] | undefined;
209
+ } | undefined;
210
+ acceptance?: string[] | undefined;
211
+ effort?: {
212
+ estimated_minutes?: number | undefined;
213
+ complexity?: "low" | "medium" | "high" | undefined;
214
+ concepts_count?: number | undefined;
215
+ files_touched?: number | undefined;
216
+ } | undefined;
217
+ requirement_ids?: string[] | undefined;
218
+ concept_codes?: string[] | undefined;
219
+ }>, "many">>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ status: "PLANNED" | "IMPLEMENTED" | "IN_PROGRESS";
222
+ id: string;
223
+ name: string;
224
+ description: string;
225
+ api_usage: string[];
226
+ platform: string;
227
+ requirement_ids: string[];
228
+ purpose: string;
229
+ priority: "polish" | "core" | "supporting";
230
+ journey_ids: string[];
231
+ depends_on: string[];
232
+ steps: {
233
+ id: string;
234
+ sequence: number;
235
+ name: string;
236
+ description: string;
237
+ files: string[];
238
+ api_usage: string[];
239
+ keywords: string[];
240
+ completion_level: "base" | "mvp" | "extend" | "polish";
241
+ platform: string;
242
+ intent: string;
243
+ acceptance: string[];
244
+ requirement_ids: string[];
245
+ concept_codes: string[];
246
+ outcome?: {
247
+ user_visible?: string | undefined;
248
+ technical?: string | string[] | undefined;
249
+ } | undefined;
250
+ effort?: {
251
+ estimated_minutes?: number | undefined;
252
+ complexity?: "low" | "medium" | "high" | undefined;
253
+ concepts_count?: number | undefined;
254
+ files_touched?: number | undefined;
255
+ } | undefined;
256
+ }[];
257
+ }, {
258
+ id: string;
259
+ name: string;
260
+ status?: "PLANNED" | "IMPLEMENTED" | "IN_PROGRESS" | undefined;
261
+ description?: string | undefined;
262
+ api_usage?: string[] | undefined;
263
+ platform?: string | undefined;
264
+ requirement_ids?: string[] | undefined;
265
+ purpose?: string | undefined;
266
+ priority?: "polish" | "core" | "supporting" | undefined;
267
+ journey_ids?: string[] | undefined;
268
+ depends_on?: string[] | undefined;
269
+ steps?: {
270
+ id: string;
271
+ sequence: number;
272
+ name: string;
273
+ description?: string | undefined;
274
+ files?: string[] | undefined;
275
+ api_usage?: string[] | undefined;
276
+ keywords?: string[] | undefined;
277
+ completion_level?: "base" | "mvp" | "extend" | "polish" | undefined;
278
+ platform?: string | undefined;
279
+ intent?: string | undefined;
280
+ outcome?: {
281
+ user_visible?: string | undefined;
282
+ technical?: string | string[] | undefined;
283
+ } | undefined;
284
+ acceptance?: string[] | undefined;
285
+ effort?: {
286
+ estimated_minutes?: number | undefined;
287
+ complexity?: "low" | "medium" | "high" | undefined;
288
+ concepts_count?: number | undefined;
289
+ files_touched?: number | undefined;
290
+ } | undefined;
291
+ requirement_ids?: string[] | undefined;
292
+ concept_codes?: string[] | undefined;
293
+ }[] | undefined;
294
+ }>;
295
+ type Feature = z.infer<typeof FeatureSchema>;
296
+ declare const JourneyStepSchema: z.ZodObject<{
297
+ id: z.ZodString;
298
+ name: z.ZodString;
299
+ steps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
300
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ id: string;
303
+ name: string;
304
+ requirement_ids: string[];
305
+ steps: string[];
306
+ }, {
307
+ id: string;
308
+ name: string;
309
+ requirement_ids?: string[] | undefined;
310
+ steps?: string[] | undefined;
311
+ }>;
312
+ declare const JourneySchema: z.ZodObject<{
313
+ id: z.ZodString;
314
+ name: z.ZodString;
315
+ steps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
316
+ feature_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
317
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ id: string;
320
+ name: string;
321
+ requirement_ids: string[];
322
+ steps: string[];
323
+ feature_ids: string[];
324
+ }, {
325
+ id: string;
326
+ name: string;
327
+ requirement_ids?: string[] | undefined;
328
+ steps?: string[] | undefined;
329
+ feature_ids?: string[] | undefined;
330
+ }>;
331
+ declare const RequirementSchema: z.ZodObject<{
332
+ id: z.ZodString;
333
+ statement: z.ZodString;
334
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["core", "supporting", "polish"]>>>;
335
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
336
+ completion_level: z.ZodDefault<z.ZodOptional<z.ZodString>>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ id: string;
339
+ completion_level: string;
340
+ acceptance: string[];
341
+ priority: "polish" | "core" | "supporting";
342
+ statement: string;
343
+ }, {
344
+ id: string;
345
+ statement: string;
346
+ completion_level?: string | undefined;
347
+ acceptance?: string[] | undefined;
348
+ priority?: "polish" | "core" | "supporting" | undefined;
349
+ }>;
350
+ declare const DevelopmentStageSchema: z.ZodObject<{
351
+ stage: z.ZodString;
352
+ product_state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
353
+ need: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
354
+ learn: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
355
+ validation: z.ZodDefault<z.ZodOptional<z.ZodString>>;
356
+ cross_feature_value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
357
+ temporary_approach: z.ZodDefault<z.ZodOptional<z.ZodString>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ validation: string;
360
+ stage: string;
361
+ product_state: string;
362
+ need: string[];
363
+ learn: string[];
364
+ cross_feature_value: string;
365
+ temporary_approach: string;
366
+ }, {
367
+ stage: string;
368
+ validation?: string | undefined;
369
+ product_state?: string | undefined;
370
+ need?: string[] | undefined;
371
+ learn?: string[] | undefined;
372
+ cross_feature_value?: string | undefined;
373
+ temporary_approach?: string | undefined;
374
+ }>;
375
+ declare const ProductGoalSchema: z.ZodObject<{
376
+ id: z.ZodString;
377
+ description: z.ZodString;
378
+ }, "strip", z.ZodTypeAny, {
379
+ id: string;
380
+ description: string;
381
+ }, {
382
+ id: string;
383
+ description: string;
384
+ }>;
385
+ declare const ProductUserSchema: z.ZodObject<{
386
+ id: z.ZodString;
387
+ goals: z.ZodArray<z.ZodString, "many">;
388
+ }, "strip", z.ZodTypeAny, {
389
+ id: string;
390
+ goals: string[];
391
+ }, {
392
+ id: string;
393
+ goals: string[];
394
+ }>;
395
+ declare const ProductSchema: z.ZodObject<{
396
+ goals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
397
+ id: z.ZodString;
398
+ description: z.ZodString;
399
+ }, "strip", z.ZodTypeAny, {
400
+ id: string;
401
+ description: string;
402
+ }, {
403
+ id: string;
404
+ description: string;
405
+ }>, "many">>>;
406
+ users: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
407
+ id: z.ZodString;
408
+ goals: z.ZodArray<z.ZodString, "many">;
409
+ }, "strip", z.ZodTypeAny, {
410
+ id: string;
411
+ goals: string[];
412
+ }, {
413
+ id: string;
414
+ goals: string[];
415
+ }>, "many">>>;
416
+ journeys: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
417
+ id: z.ZodString;
418
+ name: z.ZodString;
419
+ steps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
420
+ feature_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
421
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ id: string;
424
+ name: string;
425
+ requirement_ids: string[];
426
+ steps: string[];
427
+ feature_ids: string[];
428
+ }, {
429
+ id: string;
430
+ name: string;
431
+ requirement_ids?: string[] | undefined;
432
+ steps?: string[] | undefined;
433
+ feature_ids?: string[] | undefined;
434
+ }>, "many">>>;
435
+ requirements: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
436
+ id: z.ZodString;
437
+ statement: z.ZodString;
438
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["core", "supporting", "polish"]>>>;
439
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
440
+ completion_level: z.ZodDefault<z.ZodOptional<z.ZodString>>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ id: string;
443
+ completion_level: string;
444
+ acceptance: string[];
445
+ priority: "polish" | "core" | "supporting";
446
+ statement: string;
447
+ }, {
448
+ id: string;
449
+ statement: string;
450
+ completion_level?: string | undefined;
451
+ acceptance?: string[] | undefined;
452
+ priority?: "polish" | "core" | "supporting" | undefined;
453
+ }>, "many">>>;
454
+ development_stages: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
455
+ stage: z.ZodString;
456
+ product_state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
457
+ need: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
458
+ learn: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
459
+ validation: z.ZodDefault<z.ZodOptional<z.ZodString>>;
460
+ cross_feature_value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
461
+ temporary_approach: z.ZodDefault<z.ZodOptional<z.ZodString>>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ validation: string;
464
+ stage: string;
465
+ product_state: string;
466
+ need: string[];
467
+ learn: string[];
468
+ cross_feature_value: string;
469
+ temporary_approach: string;
470
+ }, {
471
+ stage: string;
472
+ validation?: string | undefined;
473
+ product_state?: string | undefined;
474
+ need?: string[] | undefined;
475
+ learn?: string[] | undefined;
476
+ cross_feature_value?: string | undefined;
477
+ temporary_approach?: string | undefined;
478
+ }>, "many">>>;
479
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
480
+ problem_statement: z.ZodDefault<z.ZodOptional<z.ZodString>>;
481
+ primary_users: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ purpose: string;
484
+ goals: {
485
+ id: string;
486
+ description: string;
487
+ }[];
488
+ users: {
489
+ id: string;
490
+ goals: string[];
491
+ }[];
492
+ journeys: {
493
+ id: string;
494
+ name: string;
495
+ requirement_ids: string[];
496
+ steps: string[];
497
+ feature_ids: string[];
498
+ }[];
499
+ requirements: {
500
+ id: string;
501
+ completion_level: string;
502
+ acceptance: string[];
503
+ priority: "polish" | "core" | "supporting";
504
+ statement: string;
505
+ }[];
506
+ development_stages: {
507
+ validation: string;
508
+ stage: string;
509
+ product_state: string;
510
+ need: string[];
511
+ learn: string[];
512
+ cross_feature_value: string;
513
+ temporary_approach: string;
514
+ }[];
515
+ problem_statement: string;
516
+ primary_users: string[];
517
+ }, {
518
+ purpose?: string | undefined;
519
+ goals?: {
520
+ id: string;
521
+ description: string;
522
+ }[] | undefined;
523
+ users?: {
524
+ id: string;
525
+ goals: string[];
526
+ }[] | undefined;
527
+ journeys?: {
528
+ id: string;
529
+ name: string;
530
+ requirement_ids?: string[] | undefined;
531
+ steps?: string[] | undefined;
532
+ feature_ids?: string[] | undefined;
533
+ }[] | undefined;
534
+ requirements?: {
535
+ id: string;
536
+ statement: string;
537
+ completion_level?: string | undefined;
538
+ acceptance?: string[] | undefined;
539
+ priority?: "polish" | "core" | "supporting" | undefined;
540
+ }[] | undefined;
541
+ development_stages?: {
542
+ stage: string;
543
+ validation?: string | undefined;
544
+ product_state?: string | undefined;
545
+ need?: string[] | undefined;
546
+ learn?: string[] | undefined;
547
+ cross_feature_value?: string | undefined;
548
+ temporary_approach?: string | undefined;
549
+ }[] | undefined;
550
+ problem_statement?: string | undefined;
551
+ primary_users?: string[] | undefined;
552
+ }>;
553
+ declare const TechStackSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
554
+ declare const ProjectInfoSchema: z.ZodObject<{
555
+ id: z.ZodString;
556
+ name: z.ZodString;
557
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
558
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
559
+ project_type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
560
+ platform: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
561
+ tech_stack: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
562
+ architecture: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
563
+ source: z.ZodOptional<z.ZodObject<{
564
+ repository: z.ZodDefault<z.ZodOptional<z.ZodString>>;
565
+ commit: z.ZodDefault<z.ZodOptional<z.ZodString>>;
566
+ scan_dir: z.ZodDefault<z.ZodOptional<z.ZodString>>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ repository: string;
569
+ commit: string;
570
+ scan_dir: string;
571
+ }, {
572
+ repository?: string | undefined;
573
+ commit?: string | undefined;
574
+ scan_dir?: string | undefined;
575
+ }>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ id: string;
578
+ name: string;
579
+ platform: string[];
580
+ purpose: string;
581
+ version: string;
582
+ project_type: string;
583
+ architecture: string[];
584
+ tech_stack?: Record<string, string[]> | undefined;
585
+ source?: {
586
+ repository: string;
587
+ commit: string;
588
+ scan_dir: string;
589
+ } | undefined;
590
+ }, {
591
+ id: string;
592
+ name: string;
593
+ platform?: string[] | undefined;
594
+ purpose?: string | undefined;
595
+ version?: string | undefined;
596
+ project_type?: string | undefined;
597
+ tech_stack?: Record<string, string[]> | undefined;
598
+ architecture?: string[] | undefined;
599
+ source?: {
600
+ repository?: string | undefined;
601
+ commit?: string | undefined;
602
+ scan_dir?: string | undefined;
603
+ } | undefined;
604
+ }>;
605
+ declare const CapabilitySchema: z.ZodObject<{
606
+ id: z.ZodString;
607
+ feature_id: z.ZodString;
608
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
609
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
610
+ produces: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ id: string;
613
+ purpose: string;
614
+ depends_on: string[];
615
+ feature_id: string;
616
+ produces: string[];
617
+ }, {
618
+ id: string;
619
+ feature_id: string;
620
+ purpose?: string | undefined;
621
+ depends_on?: string[] | undefined;
622
+ produces?: string[] | undefined;
623
+ }>;
624
+ declare const ArchNodeSchema: z.ZodObject<{
625
+ id: z.ZodString;
626
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
627
+ custom_type: z.ZodOptional<z.ZodString>;
628
+ layer: z.ZodDefault<z.ZodOptional<z.ZodString>>;
629
+ responsibility: z.ZodDefault<z.ZodOptional<z.ZodString>>;
630
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
631
+ used_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
632
+ evidence_type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
633
+ confidence: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
634
+ }, "strip", z.ZodTypeAny, {
635
+ type: string;
636
+ id: string;
637
+ depends_on: string[];
638
+ layer: string;
639
+ responsibility: string;
640
+ used_by: string[];
641
+ evidence_type: string;
642
+ confidence: number;
643
+ custom_type?: string | undefined;
644
+ }, {
645
+ id: string;
646
+ type?: string | undefined;
647
+ depends_on?: string[] | undefined;
648
+ custom_type?: string | undefined;
649
+ layer?: string | undefined;
650
+ responsibility?: string | undefined;
651
+ used_by?: string[] | undefined;
652
+ evidence_type?: string | undefined;
653
+ confidence?: number | undefined;
654
+ }>;
655
+ declare const ArchEdgeSchema: z.ZodObject<{
656
+ from: z.ZodString;
657
+ to: z.ZodString;
658
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ type: string;
661
+ from: string;
662
+ to: string;
663
+ }, {
664
+ from: string;
665
+ to: string;
666
+ type?: string | undefined;
667
+ }>;
668
+ declare const ArchitectureDetailSchema: z.ZodObject<{
669
+ pattern: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
670
+ confidence: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
671
+ evidence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
672
+ nodes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
673
+ id: z.ZodString;
674
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
675
+ custom_type: z.ZodOptional<z.ZodString>;
676
+ layer: z.ZodDefault<z.ZodOptional<z.ZodString>>;
677
+ responsibility: z.ZodDefault<z.ZodOptional<z.ZodString>>;
678
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
679
+ used_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
680
+ evidence_type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
681
+ confidence: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ type: string;
684
+ id: string;
685
+ depends_on: string[];
686
+ layer: string;
687
+ responsibility: string;
688
+ used_by: string[];
689
+ evidence_type: string;
690
+ confidence: number;
691
+ custom_type?: string | undefined;
692
+ }, {
693
+ id: string;
694
+ type?: string | undefined;
695
+ depends_on?: string[] | undefined;
696
+ custom_type?: string | undefined;
697
+ layer?: string | undefined;
698
+ responsibility?: string | undefined;
699
+ used_by?: string[] | undefined;
700
+ evidence_type?: string | undefined;
701
+ confidence?: number | undefined;
702
+ }>, "many">>>;
703
+ edges: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
704
+ from: z.ZodString;
705
+ to: z.ZodString;
706
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ type: string;
709
+ from: string;
710
+ to: string;
711
+ }, {
712
+ from: string;
713
+ to: string;
714
+ type?: string | undefined;
715
+ }>, "many">>>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ confidence: number;
718
+ pattern: string[];
719
+ evidence: string[];
720
+ nodes: {
721
+ type: string;
722
+ id: string;
723
+ depends_on: string[];
724
+ layer: string;
725
+ responsibility: string;
726
+ used_by: string[];
727
+ evidence_type: string;
728
+ confidence: number;
729
+ custom_type?: string | undefined;
730
+ }[];
731
+ edges: {
732
+ type: string;
733
+ from: string;
734
+ to: string;
735
+ }[];
736
+ }, {
737
+ confidence?: number | undefined;
738
+ pattern?: string[] | undefined;
739
+ evidence?: string[] | undefined;
740
+ nodes?: {
741
+ id: string;
742
+ type?: string | undefined;
743
+ depends_on?: string[] | undefined;
744
+ custom_type?: string | undefined;
745
+ layer?: string | undefined;
746
+ responsibility?: string | undefined;
747
+ used_by?: string[] | undefined;
748
+ evidence_type?: string | undefined;
749
+ confidence?: number | undefined;
750
+ }[] | undefined;
751
+ edges?: {
752
+ from: string;
753
+ to: string;
754
+ type?: string | undefined;
755
+ }[] | undefined;
756
+ }>;
757
+ declare const ScreenSchema: z.ZodObject<{
758
+ id: z.ZodString;
759
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
760
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
761
+ entry_point: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
762
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
763
+ states: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
764
+ navigates_to: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
765
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
766
+ }, "strip", z.ZodTypeAny, {
767
+ id: string;
768
+ name: string;
769
+ keywords: string[];
770
+ purpose: string;
771
+ entry_point: boolean;
772
+ components: string[];
773
+ states: string[];
774
+ navigates_to: string[];
775
+ }, {
776
+ id: string;
777
+ name?: string | undefined;
778
+ keywords?: string[] | undefined;
779
+ purpose?: string | undefined;
780
+ entry_point?: boolean | undefined;
781
+ components?: string[] | undefined;
782
+ states?: string[] | undefined;
783
+ navigates_to?: string[] | undefined;
784
+ }>;
785
+ declare const ExperienceComponentSchema: z.ZodObject<{
786
+ id: z.ZodString;
787
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
788
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
789
+ inputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
790
+ outputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
791
+ state: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ type: string;
794
+ id: string;
795
+ purpose: string;
796
+ inputs: string[];
797
+ outputs: string[];
798
+ state: string[];
799
+ }, {
800
+ id: string;
801
+ type?: string | undefined;
802
+ purpose?: string | undefined;
803
+ inputs?: string[] | undefined;
804
+ outputs?: string[] | undefined;
805
+ state?: string[] | undefined;
806
+ }>;
807
+ declare const UiStateSchema: z.ZodObject<{
808
+ id: z.ZodString;
809
+ owner: z.ZodDefault<z.ZodOptional<z.ZodString>>;
810
+ triggered_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
811
+ transitions_to: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ id: string;
814
+ owner: string;
815
+ triggered_by: string[];
816
+ transitions_to: string[];
817
+ }, {
818
+ id: string;
819
+ owner?: string | undefined;
820
+ triggered_by?: string[] | undefined;
821
+ transitions_to?: string[] | undefined;
822
+ }>;
823
+ declare const NavigationSchema: z.ZodObject<{
824
+ from: z.ZodString;
825
+ to: z.ZodString;
826
+ trigger: z.ZodDefault<z.ZodOptional<z.ZodString>>;
827
+ presentation: z.ZodDefault<z.ZodOptional<z.ZodString>>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ presentation: string;
830
+ from: string;
831
+ to: string;
832
+ trigger: string;
833
+ }, {
834
+ from: string;
835
+ to: string;
836
+ presentation?: string | undefined;
837
+ trigger?: string | undefined;
838
+ }>;
839
+ declare const ExperienceSchema: z.ZodObject<{
840
+ screens: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
841
+ id: z.ZodString;
842
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
843
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
844
+ entry_point: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
845
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
846
+ states: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
847
+ navigates_to: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
848
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ id: string;
851
+ name: string;
852
+ keywords: string[];
853
+ purpose: string;
854
+ entry_point: boolean;
855
+ components: string[];
856
+ states: string[];
857
+ navigates_to: string[];
858
+ }, {
859
+ id: string;
860
+ name?: string | undefined;
861
+ keywords?: string[] | undefined;
862
+ purpose?: string | undefined;
863
+ entry_point?: boolean | undefined;
864
+ components?: string[] | undefined;
865
+ states?: string[] | undefined;
866
+ navigates_to?: string[] | undefined;
867
+ }>, "many">>>;
868
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
869
+ id: z.ZodString;
870
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
871
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
872
+ inputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
873
+ outputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
874
+ state: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
875
+ }, "strip", z.ZodTypeAny, {
876
+ type: string;
877
+ id: string;
878
+ purpose: string;
879
+ inputs: string[];
880
+ outputs: string[];
881
+ state: string[];
882
+ }, {
883
+ id: string;
884
+ type?: string | undefined;
885
+ purpose?: string | undefined;
886
+ inputs?: string[] | undefined;
887
+ outputs?: string[] | undefined;
888
+ state?: string[] | undefined;
889
+ }>, "many">>>;
890
+ ui_states: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
891
+ id: z.ZodString;
892
+ owner: z.ZodDefault<z.ZodOptional<z.ZodString>>;
893
+ triggered_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
894
+ transitions_to: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ id: string;
897
+ owner: string;
898
+ triggered_by: string[];
899
+ transitions_to: string[];
900
+ }, {
901
+ id: string;
902
+ owner?: string | undefined;
903
+ triggered_by?: string[] | undefined;
904
+ transitions_to?: string[] | undefined;
905
+ }>, "many">>>;
906
+ navigation: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
907
+ from: z.ZodString;
908
+ to: z.ZodString;
909
+ trigger: z.ZodDefault<z.ZodOptional<z.ZodString>>;
910
+ presentation: z.ZodDefault<z.ZodOptional<z.ZodString>>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ presentation: string;
913
+ from: string;
914
+ to: string;
915
+ trigger: string;
916
+ }, {
917
+ from: string;
918
+ to: string;
919
+ presentation?: string | undefined;
920
+ trigger?: string | undefined;
921
+ }>, "many">>>;
922
+ }, "strip", z.ZodTypeAny, {
923
+ components: {
924
+ type: string;
925
+ id: string;
926
+ purpose: string;
927
+ inputs: string[];
928
+ outputs: string[];
929
+ state: string[];
930
+ }[];
931
+ screens: {
932
+ id: string;
933
+ name: string;
934
+ keywords: string[];
935
+ purpose: string;
936
+ entry_point: boolean;
937
+ components: string[];
938
+ states: string[];
939
+ navigates_to: string[];
940
+ }[];
941
+ ui_states: {
942
+ id: string;
943
+ owner: string;
944
+ triggered_by: string[];
945
+ transitions_to: string[];
946
+ }[];
947
+ navigation: {
948
+ presentation: string;
949
+ from: string;
950
+ to: string;
951
+ trigger: string;
952
+ }[];
953
+ }, {
954
+ components?: {
955
+ id: string;
956
+ type?: string | undefined;
957
+ purpose?: string | undefined;
958
+ inputs?: string[] | undefined;
959
+ outputs?: string[] | undefined;
960
+ state?: string[] | undefined;
961
+ }[] | undefined;
962
+ screens?: {
963
+ id: string;
964
+ name?: string | undefined;
965
+ keywords?: string[] | undefined;
966
+ purpose?: string | undefined;
967
+ entry_point?: boolean | undefined;
968
+ components?: string[] | undefined;
969
+ states?: string[] | undefined;
970
+ navigates_to?: string[] | undefined;
971
+ }[] | undefined;
972
+ ui_states?: {
973
+ id: string;
974
+ owner?: string | undefined;
975
+ triggered_by?: string[] | undefined;
976
+ transitions_to?: string[] | undefined;
977
+ }[] | undefined;
978
+ navigation?: {
979
+ from: string;
980
+ to: string;
981
+ presentation?: string | undefined;
982
+ trigger?: string | undefined;
983
+ }[] | undefined;
984
+ }>;
985
+ declare const DataIntegrationSchema: z.ZodObject<{
986
+ data_flows: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
987
+ models: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
988
+ integrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
989
+ persistence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ data_flows: any[];
992
+ models: any[];
993
+ integrations: any[];
994
+ persistence: any[];
995
+ }, {
996
+ data_flows?: any[] | undefined;
997
+ models?: any[] | undefined;
998
+ integrations?: any[] | undefined;
999
+ persistence?: any[] | undefined;
1000
+ }>;
1001
+ declare const TaskEffortSchema: z.ZodObject<{
1002
+ concepts_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1003
+ files_touched: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1004
+ estimated_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ estimated_minutes: number;
1007
+ concepts_count: number;
1008
+ files_touched: number;
1009
+ }, {
1010
+ estimated_minutes?: number | undefined;
1011
+ concepts_count?: number | undefined;
1012
+ files_touched?: number | undefined;
1013
+ }>;
1014
+ declare const TaskOutcomeSchema: z.ZodObject<{
1015
+ user_visible: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1016
+ technical: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ user_visible: string;
1019
+ technical: string[];
1020
+ }, {
1021
+ user_visible?: string | undefined;
1022
+ technical?: string[] | undefined;
1023
+ }>;
1024
+ declare const TaskSchema: z.ZodObject<{
1025
+ id: z.ZodString;
1026
+ capability_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1027
+ action: z.ZodString;
1028
+ modifies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1029
+ creates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1030
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1031
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1032
+ intent: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1033
+ outcome: z.ZodOptional<z.ZodObject<{
1034
+ user_visible: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1035
+ technical: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1036
+ }, "strip", z.ZodTypeAny, {
1037
+ user_visible: string;
1038
+ technical: string[];
1039
+ }, {
1040
+ user_visible?: string | undefined;
1041
+ technical?: string[] | undefined;
1042
+ }>>;
1043
+ source_evidence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1044
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1045
+ concurrency: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1046
+ effort: z.ZodOptional<z.ZodObject<{
1047
+ concepts_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1048
+ files_touched: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1049
+ estimated_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ estimated_minutes: number;
1052
+ concepts_count: number;
1053
+ files_touched: number;
1054
+ }, {
1055
+ estimated_minutes?: number | undefined;
1056
+ concepts_count?: number | undefined;
1057
+ files_touched?: number | undefined;
1058
+ }>>;
1059
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ id: string;
1062
+ keywords: string[];
1063
+ intent: string;
1064
+ acceptance: string[];
1065
+ requirement_ids: string[];
1066
+ depends_on: string[];
1067
+ capability_id: string;
1068
+ action: string;
1069
+ modifies: string[];
1070
+ creates: string[];
1071
+ source_evidence: string[];
1072
+ concurrency: string[];
1073
+ outcome?: {
1074
+ user_visible: string;
1075
+ technical: string[];
1076
+ } | undefined;
1077
+ effort?: {
1078
+ estimated_minutes: number;
1079
+ concepts_count: number;
1080
+ files_touched: number;
1081
+ } | undefined;
1082
+ }, {
1083
+ id: string;
1084
+ action: string;
1085
+ keywords?: string[] | undefined;
1086
+ intent?: string | undefined;
1087
+ outcome?: {
1088
+ user_visible?: string | undefined;
1089
+ technical?: string[] | undefined;
1090
+ } | undefined;
1091
+ acceptance?: string[] | undefined;
1092
+ effort?: {
1093
+ estimated_minutes?: number | undefined;
1094
+ concepts_count?: number | undefined;
1095
+ files_touched?: number | undefined;
1096
+ } | undefined;
1097
+ requirement_ids?: string[] | undefined;
1098
+ depends_on?: string[] | undefined;
1099
+ capability_id?: string | undefined;
1100
+ modifies?: string[] | undefined;
1101
+ creates?: string[] | undefined;
1102
+ source_evidence?: string[] | undefined;
1103
+ concurrency?: string[] | undefined;
1104
+ }>;
1105
+ declare const ImplementationSchema: z.ZodObject<{
1106
+ tasks: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1107
+ id: z.ZodString;
1108
+ capability_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1109
+ action: z.ZodString;
1110
+ modifies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1111
+ creates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1112
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1113
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1114
+ intent: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1115
+ outcome: z.ZodOptional<z.ZodObject<{
1116
+ user_visible: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1117
+ technical: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ user_visible: string;
1120
+ technical: string[];
1121
+ }, {
1122
+ user_visible?: string | undefined;
1123
+ technical?: string[] | undefined;
1124
+ }>>;
1125
+ source_evidence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1126
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1127
+ concurrency: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1128
+ effort: z.ZodOptional<z.ZodObject<{
1129
+ concepts_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1130
+ files_touched: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1131
+ estimated_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ estimated_minutes: number;
1134
+ concepts_count: number;
1135
+ files_touched: number;
1136
+ }, {
1137
+ estimated_minutes?: number | undefined;
1138
+ concepts_count?: number | undefined;
1139
+ files_touched?: number | undefined;
1140
+ }>>;
1141
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ id: string;
1144
+ keywords: string[];
1145
+ intent: string;
1146
+ acceptance: string[];
1147
+ requirement_ids: string[];
1148
+ depends_on: string[];
1149
+ capability_id: string;
1150
+ action: string;
1151
+ modifies: string[];
1152
+ creates: string[];
1153
+ source_evidence: string[];
1154
+ concurrency: string[];
1155
+ outcome?: {
1156
+ user_visible: string;
1157
+ technical: string[];
1158
+ } | undefined;
1159
+ effort?: {
1160
+ estimated_minutes: number;
1161
+ concepts_count: number;
1162
+ files_touched: number;
1163
+ } | undefined;
1164
+ }, {
1165
+ id: string;
1166
+ action: string;
1167
+ keywords?: string[] | undefined;
1168
+ intent?: string | undefined;
1169
+ outcome?: {
1170
+ user_visible?: string | undefined;
1171
+ technical?: string[] | undefined;
1172
+ } | undefined;
1173
+ acceptance?: string[] | undefined;
1174
+ effort?: {
1175
+ estimated_minutes?: number | undefined;
1176
+ concepts_count?: number | undefined;
1177
+ files_touched?: number | undefined;
1178
+ } | undefined;
1179
+ requirement_ids?: string[] | undefined;
1180
+ depends_on?: string[] | undefined;
1181
+ capability_id?: string | undefined;
1182
+ modifies?: string[] | undefined;
1183
+ creates?: string[] | undefined;
1184
+ source_evidence?: string[] | undefined;
1185
+ concurrency?: string[] | undefined;
1186
+ }>, "many">>>;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ tasks: {
1189
+ id: string;
1190
+ keywords: string[];
1191
+ intent: string;
1192
+ acceptance: string[];
1193
+ requirement_ids: string[];
1194
+ depends_on: string[];
1195
+ capability_id: string;
1196
+ action: string;
1197
+ modifies: string[];
1198
+ creates: string[];
1199
+ source_evidence: string[];
1200
+ concurrency: string[];
1201
+ outcome?: {
1202
+ user_visible: string;
1203
+ technical: string[];
1204
+ } | undefined;
1205
+ effort?: {
1206
+ estimated_minutes: number;
1207
+ concepts_count: number;
1208
+ files_touched: number;
1209
+ } | undefined;
1210
+ }[];
1211
+ }, {
1212
+ tasks?: {
1213
+ id: string;
1214
+ action: string;
1215
+ keywords?: string[] | undefined;
1216
+ intent?: string | undefined;
1217
+ outcome?: {
1218
+ user_visible?: string | undefined;
1219
+ technical?: string[] | undefined;
1220
+ } | undefined;
1221
+ acceptance?: string[] | undefined;
1222
+ effort?: {
1223
+ estimated_minutes?: number | undefined;
1224
+ concepts_count?: number | undefined;
1225
+ files_touched?: number | undefined;
1226
+ } | undefined;
1227
+ requirement_ids?: string[] | undefined;
1228
+ depends_on?: string[] | undefined;
1229
+ capability_id?: string | undefined;
1230
+ modifies?: string[] | undefined;
1231
+ creates?: string[] | undefined;
1232
+ source_evidence?: string[] | undefined;
1233
+ concurrency?: string[] | undefined;
1234
+ }[] | undefined;
1235
+ }>;
1236
+ declare const MissingGapSchema: z.ZodObject<{
1237
+ gap: z.ZodString;
1238
+ location: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1239
+ suggested_lo: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ gap: string;
1242
+ location: string;
1243
+ suggested_lo: string;
1244
+ }, {
1245
+ gap: string;
1246
+ location?: string | undefined;
1247
+ suggested_lo?: string | undefined;
1248
+ }>;
1249
+ declare const TechDebtSchema: z.ZodObject<{
1250
+ issue: z.ZodString;
1251
+ location: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1252
+ severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>>;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ location: string;
1255
+ issue: string;
1256
+ severity: "low" | "medium" | "high";
1257
+ }, {
1258
+ issue: string;
1259
+ location?: string | undefined;
1260
+ severity?: "low" | "medium" | "high" | undefined;
1261
+ }>;
1262
+ declare const MilestoneDecompositionSchema: z.ZodObject<{
1263
+ id: z.ZodString;
1264
+ phase: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1265
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1266
+ goal: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1267
+ feature_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1268
+ }, "strip", z.ZodTypeAny, {
1269
+ id: string;
1270
+ name: string;
1271
+ feature_ids: string[];
1272
+ phase: string;
1273
+ goal: string;
1274
+ }, {
1275
+ id: string;
1276
+ name?: string | undefined;
1277
+ feature_ids?: string[] | undefined;
1278
+ phase?: string | undefined;
1279
+ goal?: string | undefined;
1280
+ }>;
1281
+ declare const DecompositionSchema: z.ZodObject<{
1282
+ milestones: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1283
+ id: z.ZodString;
1284
+ phase: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1285
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1286
+ goal: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1287
+ feature_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ id: string;
1290
+ name: string;
1291
+ feature_ids: string[];
1292
+ phase: string;
1293
+ goal: string;
1294
+ }, {
1295
+ id: string;
1296
+ name?: string | undefined;
1297
+ feature_ids?: string[] | undefined;
1298
+ phase?: string | undefined;
1299
+ goal?: string | undefined;
1300
+ }>, "many">>>;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ milestones: {
1303
+ id: string;
1304
+ name: string;
1305
+ feature_ids: string[];
1306
+ phase: string;
1307
+ goal: string;
1308
+ }[];
1309
+ }, {
1310
+ milestones?: {
1311
+ id: string;
1312
+ name?: string | undefined;
1313
+ feature_ids?: string[] | undefined;
1314
+ phase?: string | undefined;
1315
+ goal?: string | undefined;
1316
+ }[] | undefined;
1317
+ }>;
1318
+ declare const ProjectGraphSchema: z.ZodObject<{
1319
+ schema_version: z.ZodDefault<z.ZodOptional<z.ZodLiteral<3>>>;
1320
+ project: z.ZodObject<{
1321
+ id: z.ZodString;
1322
+ name: z.ZodString;
1323
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1324
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1325
+ project_type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1326
+ platform: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1327
+ tech_stack: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1328
+ architecture: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1329
+ source: z.ZodOptional<z.ZodObject<{
1330
+ repository: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1331
+ commit: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1332
+ scan_dir: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1333
+ }, "strip", z.ZodTypeAny, {
1334
+ repository: string;
1335
+ commit: string;
1336
+ scan_dir: string;
1337
+ }, {
1338
+ repository?: string | undefined;
1339
+ commit?: string | undefined;
1340
+ scan_dir?: string | undefined;
1341
+ }>>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ id: string;
1344
+ name: string;
1345
+ platform: string[];
1346
+ purpose: string;
1347
+ version: string;
1348
+ project_type: string;
1349
+ architecture: string[];
1350
+ tech_stack?: Record<string, string[]> | undefined;
1351
+ source?: {
1352
+ repository: string;
1353
+ commit: string;
1354
+ scan_dir: string;
1355
+ } | undefined;
1356
+ }, {
1357
+ id: string;
1358
+ name: string;
1359
+ platform?: string[] | undefined;
1360
+ purpose?: string | undefined;
1361
+ version?: string | undefined;
1362
+ project_type?: string | undefined;
1363
+ tech_stack?: Record<string, string[]> | undefined;
1364
+ architecture?: string[] | undefined;
1365
+ source?: {
1366
+ repository?: string | undefined;
1367
+ commit?: string | undefined;
1368
+ scan_dir?: string | undefined;
1369
+ } | undefined;
1370
+ }>;
1371
+ product: z.ZodObject<{
1372
+ goals: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1373
+ id: z.ZodString;
1374
+ description: z.ZodString;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ id: string;
1377
+ description: string;
1378
+ }, {
1379
+ id: string;
1380
+ description: string;
1381
+ }>, "many">>>;
1382
+ users: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1383
+ id: z.ZodString;
1384
+ goals: z.ZodArray<z.ZodString, "many">;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ id: string;
1387
+ goals: string[];
1388
+ }, {
1389
+ id: string;
1390
+ goals: string[];
1391
+ }>, "many">>>;
1392
+ journeys: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1393
+ id: z.ZodString;
1394
+ name: z.ZodString;
1395
+ steps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1396
+ feature_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1397
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ id: string;
1400
+ name: string;
1401
+ requirement_ids: string[];
1402
+ steps: string[];
1403
+ feature_ids: string[];
1404
+ }, {
1405
+ id: string;
1406
+ name: string;
1407
+ requirement_ids?: string[] | undefined;
1408
+ steps?: string[] | undefined;
1409
+ feature_ids?: string[] | undefined;
1410
+ }>, "many">>>;
1411
+ requirements: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1412
+ id: z.ZodString;
1413
+ statement: z.ZodString;
1414
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["core", "supporting", "polish"]>>>;
1415
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1416
+ completion_level: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ id: string;
1419
+ completion_level: string;
1420
+ acceptance: string[];
1421
+ priority: "polish" | "core" | "supporting";
1422
+ statement: string;
1423
+ }, {
1424
+ id: string;
1425
+ statement: string;
1426
+ completion_level?: string | undefined;
1427
+ acceptance?: string[] | undefined;
1428
+ priority?: "polish" | "core" | "supporting" | undefined;
1429
+ }>, "many">>>;
1430
+ development_stages: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1431
+ stage: z.ZodString;
1432
+ product_state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1433
+ need: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1434
+ learn: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1435
+ validation: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1436
+ cross_feature_value: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1437
+ temporary_approach: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ validation: string;
1440
+ stage: string;
1441
+ product_state: string;
1442
+ need: string[];
1443
+ learn: string[];
1444
+ cross_feature_value: string;
1445
+ temporary_approach: string;
1446
+ }, {
1447
+ stage: string;
1448
+ validation?: string | undefined;
1449
+ product_state?: string | undefined;
1450
+ need?: string[] | undefined;
1451
+ learn?: string[] | undefined;
1452
+ cross_feature_value?: string | undefined;
1453
+ temporary_approach?: string | undefined;
1454
+ }>, "many">>>;
1455
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1456
+ problem_statement: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1457
+ primary_users: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ purpose: string;
1460
+ goals: {
1461
+ id: string;
1462
+ description: string;
1463
+ }[];
1464
+ users: {
1465
+ id: string;
1466
+ goals: string[];
1467
+ }[];
1468
+ journeys: {
1469
+ id: string;
1470
+ name: string;
1471
+ requirement_ids: string[];
1472
+ steps: string[];
1473
+ feature_ids: string[];
1474
+ }[];
1475
+ requirements: {
1476
+ id: string;
1477
+ completion_level: string;
1478
+ acceptance: string[];
1479
+ priority: "polish" | "core" | "supporting";
1480
+ statement: string;
1481
+ }[];
1482
+ development_stages: {
1483
+ validation: string;
1484
+ stage: string;
1485
+ product_state: string;
1486
+ need: string[];
1487
+ learn: string[];
1488
+ cross_feature_value: string;
1489
+ temporary_approach: string;
1490
+ }[];
1491
+ problem_statement: string;
1492
+ primary_users: string[];
1493
+ }, {
1494
+ purpose?: string | undefined;
1495
+ goals?: {
1496
+ id: string;
1497
+ description: string;
1498
+ }[] | undefined;
1499
+ users?: {
1500
+ id: string;
1501
+ goals: string[];
1502
+ }[] | undefined;
1503
+ journeys?: {
1504
+ id: string;
1505
+ name: string;
1506
+ requirement_ids?: string[] | undefined;
1507
+ steps?: string[] | undefined;
1508
+ feature_ids?: string[] | undefined;
1509
+ }[] | undefined;
1510
+ requirements?: {
1511
+ id: string;
1512
+ statement: string;
1513
+ completion_level?: string | undefined;
1514
+ acceptance?: string[] | undefined;
1515
+ priority?: "polish" | "core" | "supporting" | undefined;
1516
+ }[] | undefined;
1517
+ development_stages?: {
1518
+ stage: string;
1519
+ validation?: string | undefined;
1520
+ product_state?: string | undefined;
1521
+ need?: string[] | undefined;
1522
+ learn?: string[] | undefined;
1523
+ cross_feature_value?: string | undefined;
1524
+ temporary_approach?: string | undefined;
1525
+ }[] | undefined;
1526
+ problem_statement?: string | undefined;
1527
+ primary_users?: string[] | undefined;
1528
+ }>;
1529
+ features: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1530
+ id: z.ZodString;
1531
+ name: z.ZodString;
1532
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1533
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1534
+ priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["core", "supporting", "polish"]>>>;
1535
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["PLANNED", "IMPLEMENTED", "IN_PROGRESS"]>>>;
1536
+ platform: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1537
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1538
+ journey_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1539
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1540
+ api_usage: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1541
+ steps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1542
+ id: z.ZodString;
1543
+ sequence: z.ZodNumber;
1544
+ name: z.ZodString;
1545
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1546
+ files: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1547
+ api_usage: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1548
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1549
+ completion_level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["base", "mvp", "extend", "polish"]>>>;
1550
+ platform: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1551
+ intent: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1552
+ outcome: z.ZodOptional<z.ZodObject<{
1553
+ user_visible: z.ZodOptional<z.ZodString>;
1554
+ technical: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ user_visible?: string | undefined;
1557
+ technical?: string | string[] | undefined;
1558
+ }, {
1559
+ user_visible?: string | undefined;
1560
+ technical?: string | string[] | undefined;
1561
+ }>>;
1562
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1563
+ effort: z.ZodOptional<z.ZodObject<{
1564
+ estimated_minutes: z.ZodOptional<z.ZodNumber>;
1565
+ complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1566
+ concepts_count: z.ZodOptional<z.ZodNumber>;
1567
+ files_touched: z.ZodOptional<z.ZodNumber>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ estimated_minutes?: number | undefined;
1570
+ complexity?: "low" | "medium" | "high" | undefined;
1571
+ concepts_count?: number | undefined;
1572
+ files_touched?: number | undefined;
1573
+ }, {
1574
+ estimated_minutes?: number | undefined;
1575
+ complexity?: "low" | "medium" | "high" | undefined;
1576
+ concepts_count?: number | undefined;
1577
+ files_touched?: number | undefined;
1578
+ }>>;
1579
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1580
+ concept_codes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ id: string;
1583
+ sequence: number;
1584
+ name: string;
1585
+ description: string;
1586
+ files: string[];
1587
+ api_usage: string[];
1588
+ keywords: string[];
1589
+ completion_level: "base" | "mvp" | "extend" | "polish";
1590
+ platform: string;
1591
+ intent: string;
1592
+ acceptance: string[];
1593
+ requirement_ids: string[];
1594
+ concept_codes: string[];
1595
+ outcome?: {
1596
+ user_visible?: string | undefined;
1597
+ technical?: string | string[] | undefined;
1598
+ } | undefined;
1599
+ effort?: {
1600
+ estimated_minutes?: number | undefined;
1601
+ complexity?: "low" | "medium" | "high" | undefined;
1602
+ concepts_count?: number | undefined;
1603
+ files_touched?: number | undefined;
1604
+ } | undefined;
1605
+ }, {
1606
+ id: string;
1607
+ sequence: number;
1608
+ name: string;
1609
+ description?: string | undefined;
1610
+ files?: string[] | undefined;
1611
+ api_usage?: string[] | undefined;
1612
+ keywords?: string[] | undefined;
1613
+ completion_level?: "base" | "mvp" | "extend" | "polish" | undefined;
1614
+ platform?: string | undefined;
1615
+ intent?: string | undefined;
1616
+ outcome?: {
1617
+ user_visible?: string | undefined;
1618
+ technical?: string | string[] | undefined;
1619
+ } | undefined;
1620
+ acceptance?: string[] | undefined;
1621
+ effort?: {
1622
+ estimated_minutes?: number | undefined;
1623
+ complexity?: "low" | "medium" | "high" | undefined;
1624
+ concepts_count?: number | undefined;
1625
+ files_touched?: number | undefined;
1626
+ } | undefined;
1627
+ requirement_ids?: string[] | undefined;
1628
+ concept_codes?: string[] | undefined;
1629
+ }>, "many">>>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ status: "PLANNED" | "IMPLEMENTED" | "IN_PROGRESS";
1632
+ id: string;
1633
+ name: string;
1634
+ description: string;
1635
+ api_usage: string[];
1636
+ platform: string;
1637
+ requirement_ids: string[];
1638
+ purpose: string;
1639
+ priority: "polish" | "core" | "supporting";
1640
+ journey_ids: string[];
1641
+ depends_on: string[];
1642
+ steps: {
1643
+ id: string;
1644
+ sequence: number;
1645
+ name: string;
1646
+ description: string;
1647
+ files: string[];
1648
+ api_usage: string[];
1649
+ keywords: string[];
1650
+ completion_level: "base" | "mvp" | "extend" | "polish";
1651
+ platform: string;
1652
+ intent: string;
1653
+ acceptance: string[];
1654
+ requirement_ids: string[];
1655
+ concept_codes: string[];
1656
+ outcome?: {
1657
+ user_visible?: string | undefined;
1658
+ technical?: string | string[] | undefined;
1659
+ } | undefined;
1660
+ effort?: {
1661
+ estimated_minutes?: number | undefined;
1662
+ complexity?: "low" | "medium" | "high" | undefined;
1663
+ concepts_count?: number | undefined;
1664
+ files_touched?: number | undefined;
1665
+ } | undefined;
1666
+ }[];
1667
+ }, {
1668
+ id: string;
1669
+ name: string;
1670
+ status?: "PLANNED" | "IMPLEMENTED" | "IN_PROGRESS" | undefined;
1671
+ description?: string | undefined;
1672
+ api_usage?: string[] | undefined;
1673
+ platform?: string | undefined;
1674
+ requirement_ids?: string[] | undefined;
1675
+ purpose?: string | undefined;
1676
+ priority?: "polish" | "core" | "supporting" | undefined;
1677
+ journey_ids?: string[] | undefined;
1678
+ depends_on?: string[] | undefined;
1679
+ steps?: {
1680
+ id: string;
1681
+ sequence: number;
1682
+ name: string;
1683
+ description?: string | undefined;
1684
+ files?: string[] | undefined;
1685
+ api_usage?: string[] | undefined;
1686
+ keywords?: string[] | undefined;
1687
+ completion_level?: "base" | "mvp" | "extend" | "polish" | undefined;
1688
+ platform?: string | undefined;
1689
+ intent?: string | undefined;
1690
+ outcome?: {
1691
+ user_visible?: string | undefined;
1692
+ technical?: string | string[] | undefined;
1693
+ } | undefined;
1694
+ acceptance?: string[] | undefined;
1695
+ effort?: {
1696
+ estimated_minutes?: number | undefined;
1697
+ complexity?: "low" | "medium" | "high" | undefined;
1698
+ concepts_count?: number | undefined;
1699
+ files_touched?: number | undefined;
1700
+ } | undefined;
1701
+ requirement_ids?: string[] | undefined;
1702
+ concept_codes?: string[] | undefined;
1703
+ }[] | undefined;
1704
+ }>, "many">>>;
1705
+ capabilities: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1706
+ id: z.ZodString;
1707
+ feature_id: z.ZodString;
1708
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1709
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1710
+ produces: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ id: string;
1713
+ purpose: string;
1714
+ depends_on: string[];
1715
+ feature_id: string;
1716
+ produces: string[];
1717
+ }, {
1718
+ id: string;
1719
+ feature_id: string;
1720
+ purpose?: string | undefined;
1721
+ depends_on?: string[] | undefined;
1722
+ produces?: string[] | undefined;
1723
+ }>, "many">>>;
1724
+ architecture_detail: z.ZodOptional<z.ZodObject<{
1725
+ pattern: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1726
+ confidence: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1727
+ evidence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1728
+ nodes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1729
+ id: z.ZodString;
1730
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1731
+ custom_type: z.ZodOptional<z.ZodString>;
1732
+ layer: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1733
+ responsibility: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1734
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1735
+ used_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1736
+ evidence_type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1737
+ confidence: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ type: string;
1740
+ id: string;
1741
+ depends_on: string[];
1742
+ layer: string;
1743
+ responsibility: string;
1744
+ used_by: string[];
1745
+ evidence_type: string;
1746
+ confidence: number;
1747
+ custom_type?: string | undefined;
1748
+ }, {
1749
+ id: string;
1750
+ type?: string | undefined;
1751
+ depends_on?: string[] | undefined;
1752
+ custom_type?: string | undefined;
1753
+ layer?: string | undefined;
1754
+ responsibility?: string | undefined;
1755
+ used_by?: string[] | undefined;
1756
+ evidence_type?: string | undefined;
1757
+ confidence?: number | undefined;
1758
+ }>, "many">>>;
1759
+ edges: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1760
+ from: z.ZodString;
1761
+ to: z.ZodString;
1762
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ type: string;
1765
+ from: string;
1766
+ to: string;
1767
+ }, {
1768
+ from: string;
1769
+ to: string;
1770
+ type?: string | undefined;
1771
+ }>, "many">>>;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ confidence: number;
1774
+ pattern: string[];
1775
+ evidence: string[];
1776
+ nodes: {
1777
+ type: string;
1778
+ id: string;
1779
+ depends_on: string[];
1780
+ layer: string;
1781
+ responsibility: string;
1782
+ used_by: string[];
1783
+ evidence_type: string;
1784
+ confidence: number;
1785
+ custom_type?: string | undefined;
1786
+ }[];
1787
+ edges: {
1788
+ type: string;
1789
+ from: string;
1790
+ to: string;
1791
+ }[];
1792
+ }, {
1793
+ confidence?: number | undefined;
1794
+ pattern?: string[] | undefined;
1795
+ evidence?: string[] | undefined;
1796
+ nodes?: {
1797
+ id: string;
1798
+ type?: string | undefined;
1799
+ depends_on?: string[] | undefined;
1800
+ custom_type?: string | undefined;
1801
+ layer?: string | undefined;
1802
+ responsibility?: string | undefined;
1803
+ used_by?: string[] | undefined;
1804
+ evidence_type?: string | undefined;
1805
+ confidence?: number | undefined;
1806
+ }[] | undefined;
1807
+ edges?: {
1808
+ from: string;
1809
+ to: string;
1810
+ type?: string | undefined;
1811
+ }[] | undefined;
1812
+ }>>;
1813
+ experience: z.ZodOptional<z.ZodObject<{
1814
+ screens: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1815
+ id: z.ZodString;
1816
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1817
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1818
+ entry_point: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1819
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1820
+ states: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1821
+ navigates_to: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1822
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ id: string;
1825
+ name: string;
1826
+ keywords: string[];
1827
+ purpose: string;
1828
+ entry_point: boolean;
1829
+ components: string[];
1830
+ states: string[];
1831
+ navigates_to: string[];
1832
+ }, {
1833
+ id: string;
1834
+ name?: string | undefined;
1835
+ keywords?: string[] | undefined;
1836
+ purpose?: string | undefined;
1837
+ entry_point?: boolean | undefined;
1838
+ components?: string[] | undefined;
1839
+ states?: string[] | undefined;
1840
+ navigates_to?: string[] | undefined;
1841
+ }>, "many">>>;
1842
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1843
+ id: z.ZodString;
1844
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1845
+ purpose: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1846
+ inputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1847
+ outputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1848
+ state: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1849
+ }, "strip", z.ZodTypeAny, {
1850
+ type: string;
1851
+ id: string;
1852
+ purpose: string;
1853
+ inputs: string[];
1854
+ outputs: string[];
1855
+ state: string[];
1856
+ }, {
1857
+ id: string;
1858
+ type?: string | undefined;
1859
+ purpose?: string | undefined;
1860
+ inputs?: string[] | undefined;
1861
+ outputs?: string[] | undefined;
1862
+ state?: string[] | undefined;
1863
+ }>, "many">>>;
1864
+ ui_states: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1865
+ id: z.ZodString;
1866
+ owner: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1867
+ triggered_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1868
+ transitions_to: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ id: string;
1871
+ owner: string;
1872
+ triggered_by: string[];
1873
+ transitions_to: string[];
1874
+ }, {
1875
+ id: string;
1876
+ owner?: string | undefined;
1877
+ triggered_by?: string[] | undefined;
1878
+ transitions_to?: string[] | undefined;
1879
+ }>, "many">>>;
1880
+ navigation: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1881
+ from: z.ZodString;
1882
+ to: z.ZodString;
1883
+ trigger: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1884
+ presentation: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1885
+ }, "strip", z.ZodTypeAny, {
1886
+ presentation: string;
1887
+ from: string;
1888
+ to: string;
1889
+ trigger: string;
1890
+ }, {
1891
+ from: string;
1892
+ to: string;
1893
+ presentation?: string | undefined;
1894
+ trigger?: string | undefined;
1895
+ }>, "many">>>;
1896
+ }, "strip", z.ZodTypeAny, {
1897
+ components: {
1898
+ type: string;
1899
+ id: string;
1900
+ purpose: string;
1901
+ inputs: string[];
1902
+ outputs: string[];
1903
+ state: string[];
1904
+ }[];
1905
+ screens: {
1906
+ id: string;
1907
+ name: string;
1908
+ keywords: string[];
1909
+ purpose: string;
1910
+ entry_point: boolean;
1911
+ components: string[];
1912
+ states: string[];
1913
+ navigates_to: string[];
1914
+ }[];
1915
+ ui_states: {
1916
+ id: string;
1917
+ owner: string;
1918
+ triggered_by: string[];
1919
+ transitions_to: string[];
1920
+ }[];
1921
+ navigation: {
1922
+ presentation: string;
1923
+ from: string;
1924
+ to: string;
1925
+ trigger: string;
1926
+ }[];
1927
+ }, {
1928
+ components?: {
1929
+ id: string;
1930
+ type?: string | undefined;
1931
+ purpose?: string | undefined;
1932
+ inputs?: string[] | undefined;
1933
+ outputs?: string[] | undefined;
1934
+ state?: string[] | undefined;
1935
+ }[] | undefined;
1936
+ screens?: {
1937
+ id: string;
1938
+ name?: string | undefined;
1939
+ keywords?: string[] | undefined;
1940
+ purpose?: string | undefined;
1941
+ entry_point?: boolean | undefined;
1942
+ components?: string[] | undefined;
1943
+ states?: string[] | undefined;
1944
+ navigates_to?: string[] | undefined;
1945
+ }[] | undefined;
1946
+ ui_states?: {
1947
+ id: string;
1948
+ owner?: string | undefined;
1949
+ triggered_by?: string[] | undefined;
1950
+ transitions_to?: string[] | undefined;
1951
+ }[] | undefined;
1952
+ navigation?: {
1953
+ from: string;
1954
+ to: string;
1955
+ presentation?: string | undefined;
1956
+ trigger?: string | undefined;
1957
+ }[] | undefined;
1958
+ }>>;
1959
+ data_integration: z.ZodOptional<z.ZodObject<{
1960
+ data_flows: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
1961
+ models: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
1962
+ integrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
1963
+ persistence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ data_flows: any[];
1966
+ models: any[];
1967
+ integrations: any[];
1968
+ persistence: any[];
1969
+ }, {
1970
+ data_flows?: any[] | undefined;
1971
+ models?: any[] | undefined;
1972
+ integrations?: any[] | undefined;
1973
+ persistence?: any[] | undefined;
1974
+ }>>;
1975
+ implementation: z.ZodObject<{
1976
+ tasks: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1977
+ id: z.ZodString;
1978
+ capability_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1979
+ action: z.ZodString;
1980
+ modifies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1981
+ creates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1982
+ depends_on: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1983
+ acceptance: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1984
+ intent: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1985
+ outcome: z.ZodOptional<z.ZodObject<{
1986
+ user_visible: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1987
+ technical: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1988
+ }, "strip", z.ZodTypeAny, {
1989
+ user_visible: string;
1990
+ technical: string[];
1991
+ }, {
1992
+ user_visible?: string | undefined;
1993
+ technical?: string[] | undefined;
1994
+ }>>;
1995
+ source_evidence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1996
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1997
+ concurrency: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1998
+ effort: z.ZodOptional<z.ZodObject<{
1999
+ concepts_count: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2000
+ files_touched: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2001
+ estimated_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2002
+ }, "strip", z.ZodTypeAny, {
2003
+ estimated_minutes: number;
2004
+ concepts_count: number;
2005
+ files_touched: number;
2006
+ }, {
2007
+ estimated_minutes?: number | undefined;
2008
+ concepts_count?: number | undefined;
2009
+ files_touched?: number | undefined;
2010
+ }>>;
2011
+ requirement_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ id: string;
2014
+ keywords: string[];
2015
+ intent: string;
2016
+ acceptance: string[];
2017
+ requirement_ids: string[];
2018
+ depends_on: string[];
2019
+ capability_id: string;
2020
+ action: string;
2021
+ modifies: string[];
2022
+ creates: string[];
2023
+ source_evidence: string[];
2024
+ concurrency: string[];
2025
+ outcome?: {
2026
+ user_visible: string;
2027
+ technical: string[];
2028
+ } | undefined;
2029
+ effort?: {
2030
+ estimated_minutes: number;
2031
+ concepts_count: number;
2032
+ files_touched: number;
2033
+ } | undefined;
2034
+ }, {
2035
+ id: string;
2036
+ action: string;
2037
+ keywords?: string[] | undefined;
2038
+ intent?: string | undefined;
2039
+ outcome?: {
2040
+ user_visible?: string | undefined;
2041
+ technical?: string[] | undefined;
2042
+ } | undefined;
2043
+ acceptance?: string[] | undefined;
2044
+ effort?: {
2045
+ estimated_minutes?: number | undefined;
2046
+ concepts_count?: number | undefined;
2047
+ files_touched?: number | undefined;
2048
+ } | undefined;
2049
+ requirement_ids?: string[] | undefined;
2050
+ depends_on?: string[] | undefined;
2051
+ capability_id?: string | undefined;
2052
+ modifies?: string[] | undefined;
2053
+ creates?: string[] | undefined;
2054
+ source_evidence?: string[] | undefined;
2055
+ concurrency?: string[] | undefined;
2056
+ }>, "many">>>;
2057
+ }, "strip", z.ZodTypeAny, {
2058
+ tasks: {
2059
+ id: string;
2060
+ keywords: string[];
2061
+ intent: string;
2062
+ acceptance: string[];
2063
+ requirement_ids: string[];
2064
+ depends_on: string[];
2065
+ capability_id: string;
2066
+ action: string;
2067
+ modifies: string[];
2068
+ creates: string[];
2069
+ source_evidence: string[];
2070
+ concurrency: string[];
2071
+ outcome?: {
2072
+ user_visible: string;
2073
+ technical: string[];
2074
+ } | undefined;
2075
+ effort?: {
2076
+ estimated_minutes: number;
2077
+ concepts_count: number;
2078
+ files_touched: number;
2079
+ } | undefined;
2080
+ }[];
2081
+ }, {
2082
+ tasks?: {
2083
+ id: string;
2084
+ action: string;
2085
+ keywords?: string[] | undefined;
2086
+ intent?: string | undefined;
2087
+ outcome?: {
2088
+ user_visible?: string | undefined;
2089
+ technical?: string[] | undefined;
2090
+ } | undefined;
2091
+ acceptance?: string[] | undefined;
2092
+ effort?: {
2093
+ estimated_minutes?: number | undefined;
2094
+ concepts_count?: number | undefined;
2095
+ files_touched?: number | undefined;
2096
+ } | undefined;
2097
+ requirement_ids?: string[] | undefined;
2098
+ depends_on?: string[] | undefined;
2099
+ capability_id?: string | undefined;
2100
+ modifies?: string[] | undefined;
2101
+ creates?: string[] | undefined;
2102
+ source_evidence?: string[] | undefined;
2103
+ concurrency?: string[] | undefined;
2104
+ }[] | undefined;
2105
+ }>;
2106
+ decomposition: z.ZodOptional<z.ZodObject<{
2107
+ milestones: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2108
+ id: z.ZodString;
2109
+ phase: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2110
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2111
+ goal: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2112
+ feature_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2113
+ }, "strip", z.ZodTypeAny, {
2114
+ id: string;
2115
+ name: string;
2116
+ feature_ids: string[];
2117
+ phase: string;
2118
+ goal: string;
2119
+ }, {
2120
+ id: string;
2121
+ name?: string | undefined;
2122
+ feature_ids?: string[] | undefined;
2123
+ phase?: string | undefined;
2124
+ goal?: string | undefined;
2125
+ }>, "many">>>;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ milestones: {
2128
+ id: string;
2129
+ name: string;
2130
+ feature_ids: string[];
2131
+ phase: string;
2132
+ goal: string;
2133
+ }[];
2134
+ }, {
2135
+ milestones?: {
2136
+ id: string;
2137
+ name?: string | undefined;
2138
+ feature_ids?: string[] | undefined;
2139
+ phase?: string | undefined;
2140
+ goal?: string | undefined;
2141
+ }[] | undefined;
2142
+ }>>;
2143
+ missing_gaps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2144
+ gap: z.ZodString;
2145
+ location: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2146
+ suggested_lo: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2147
+ }, "strip", z.ZodTypeAny, {
2148
+ gap: string;
2149
+ location: string;
2150
+ suggested_lo: string;
2151
+ }, {
2152
+ gap: string;
2153
+ location?: string | undefined;
2154
+ suggested_lo?: string | undefined;
2155
+ }>, "many">>>;
2156
+ tech_debt: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
2157
+ issue: z.ZodString;
2158
+ location: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2159
+ severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>>;
2160
+ }, "strip", z.ZodTypeAny, {
2161
+ location: string;
2162
+ issue: string;
2163
+ severity: "low" | "medium" | "high";
2164
+ }, {
2165
+ issue: string;
2166
+ location?: string | undefined;
2167
+ severity?: "low" | "medium" | "high" | undefined;
2168
+ }>, "many">>>;
2169
+ }, "strip", z.ZodTypeAny, {
2170
+ schema_version: 3;
2171
+ project: {
2172
+ id: string;
2173
+ name: string;
2174
+ platform: string[];
2175
+ purpose: string;
2176
+ version: string;
2177
+ project_type: string;
2178
+ architecture: string[];
2179
+ tech_stack?: Record<string, string[]> | undefined;
2180
+ source?: {
2181
+ repository: string;
2182
+ commit: string;
2183
+ scan_dir: string;
2184
+ } | undefined;
2185
+ };
2186
+ product: {
2187
+ purpose: string;
2188
+ goals: {
2189
+ id: string;
2190
+ description: string;
2191
+ }[];
2192
+ users: {
2193
+ id: string;
2194
+ goals: string[];
2195
+ }[];
2196
+ journeys: {
2197
+ id: string;
2198
+ name: string;
2199
+ requirement_ids: string[];
2200
+ steps: string[];
2201
+ feature_ids: string[];
2202
+ }[];
2203
+ requirements: {
2204
+ id: string;
2205
+ completion_level: string;
2206
+ acceptance: string[];
2207
+ priority: "polish" | "core" | "supporting";
2208
+ statement: string;
2209
+ }[];
2210
+ development_stages: {
2211
+ validation: string;
2212
+ stage: string;
2213
+ product_state: string;
2214
+ need: string[];
2215
+ learn: string[];
2216
+ cross_feature_value: string;
2217
+ temporary_approach: string;
2218
+ }[];
2219
+ problem_statement: string;
2220
+ primary_users: string[];
2221
+ };
2222
+ features: {
2223
+ status: "PLANNED" | "IMPLEMENTED" | "IN_PROGRESS";
2224
+ id: string;
2225
+ name: string;
2226
+ description: string;
2227
+ api_usage: string[];
2228
+ platform: string;
2229
+ requirement_ids: string[];
2230
+ purpose: string;
2231
+ priority: "polish" | "core" | "supporting";
2232
+ journey_ids: string[];
2233
+ depends_on: string[];
2234
+ steps: {
2235
+ id: string;
2236
+ sequence: number;
2237
+ name: string;
2238
+ description: string;
2239
+ files: string[];
2240
+ api_usage: string[];
2241
+ keywords: string[];
2242
+ completion_level: "base" | "mvp" | "extend" | "polish";
2243
+ platform: string;
2244
+ intent: string;
2245
+ acceptance: string[];
2246
+ requirement_ids: string[];
2247
+ concept_codes: string[];
2248
+ outcome?: {
2249
+ user_visible?: string | undefined;
2250
+ technical?: string | string[] | undefined;
2251
+ } | undefined;
2252
+ effort?: {
2253
+ estimated_minutes?: number | undefined;
2254
+ complexity?: "low" | "medium" | "high" | undefined;
2255
+ concepts_count?: number | undefined;
2256
+ files_touched?: number | undefined;
2257
+ } | undefined;
2258
+ }[];
2259
+ }[];
2260
+ capabilities: {
2261
+ id: string;
2262
+ purpose: string;
2263
+ depends_on: string[];
2264
+ feature_id: string;
2265
+ produces: string[];
2266
+ }[];
2267
+ implementation: {
2268
+ tasks: {
2269
+ id: string;
2270
+ keywords: string[];
2271
+ intent: string;
2272
+ acceptance: string[];
2273
+ requirement_ids: string[];
2274
+ depends_on: string[];
2275
+ capability_id: string;
2276
+ action: string;
2277
+ modifies: string[];
2278
+ creates: string[];
2279
+ source_evidence: string[];
2280
+ concurrency: string[];
2281
+ outcome?: {
2282
+ user_visible: string;
2283
+ technical: string[];
2284
+ } | undefined;
2285
+ effort?: {
2286
+ estimated_minutes: number;
2287
+ concepts_count: number;
2288
+ files_touched: number;
2289
+ } | undefined;
2290
+ }[];
2291
+ };
2292
+ missing_gaps: {
2293
+ gap: string;
2294
+ location: string;
2295
+ suggested_lo: string;
2296
+ }[];
2297
+ tech_debt: {
2298
+ location: string;
2299
+ issue: string;
2300
+ severity: "low" | "medium" | "high";
2301
+ }[];
2302
+ architecture_detail?: {
2303
+ confidence: number;
2304
+ pattern: string[];
2305
+ evidence: string[];
2306
+ nodes: {
2307
+ type: string;
2308
+ id: string;
2309
+ depends_on: string[];
2310
+ layer: string;
2311
+ responsibility: string;
2312
+ used_by: string[];
2313
+ evidence_type: string;
2314
+ confidence: number;
2315
+ custom_type?: string | undefined;
2316
+ }[];
2317
+ edges: {
2318
+ type: string;
2319
+ from: string;
2320
+ to: string;
2321
+ }[];
2322
+ } | undefined;
2323
+ experience?: {
2324
+ components: {
2325
+ type: string;
2326
+ id: string;
2327
+ purpose: string;
2328
+ inputs: string[];
2329
+ outputs: string[];
2330
+ state: string[];
2331
+ }[];
2332
+ screens: {
2333
+ id: string;
2334
+ name: string;
2335
+ keywords: string[];
2336
+ purpose: string;
2337
+ entry_point: boolean;
2338
+ components: string[];
2339
+ states: string[];
2340
+ navigates_to: string[];
2341
+ }[];
2342
+ ui_states: {
2343
+ id: string;
2344
+ owner: string;
2345
+ triggered_by: string[];
2346
+ transitions_to: string[];
2347
+ }[];
2348
+ navigation: {
2349
+ presentation: string;
2350
+ from: string;
2351
+ to: string;
2352
+ trigger: string;
2353
+ }[];
2354
+ } | undefined;
2355
+ data_integration?: {
2356
+ data_flows: any[];
2357
+ models: any[];
2358
+ integrations: any[];
2359
+ persistence: any[];
2360
+ } | undefined;
2361
+ decomposition?: {
2362
+ milestones: {
2363
+ id: string;
2364
+ name: string;
2365
+ feature_ids: string[];
2366
+ phase: string;
2367
+ goal: string;
2368
+ }[];
2369
+ } | undefined;
2370
+ }, {
2371
+ project: {
2372
+ id: string;
2373
+ name: string;
2374
+ platform?: string[] | undefined;
2375
+ purpose?: string | undefined;
2376
+ version?: string | undefined;
2377
+ project_type?: string | undefined;
2378
+ tech_stack?: Record<string, string[]> | undefined;
2379
+ architecture?: string[] | undefined;
2380
+ source?: {
2381
+ repository?: string | undefined;
2382
+ commit?: string | undefined;
2383
+ scan_dir?: string | undefined;
2384
+ } | undefined;
2385
+ };
2386
+ product: {
2387
+ purpose?: string | undefined;
2388
+ goals?: {
2389
+ id: string;
2390
+ description: string;
2391
+ }[] | undefined;
2392
+ users?: {
2393
+ id: string;
2394
+ goals: string[];
2395
+ }[] | undefined;
2396
+ journeys?: {
2397
+ id: string;
2398
+ name: string;
2399
+ requirement_ids?: string[] | undefined;
2400
+ steps?: string[] | undefined;
2401
+ feature_ids?: string[] | undefined;
2402
+ }[] | undefined;
2403
+ requirements?: {
2404
+ id: string;
2405
+ statement: string;
2406
+ completion_level?: string | undefined;
2407
+ acceptance?: string[] | undefined;
2408
+ priority?: "polish" | "core" | "supporting" | undefined;
2409
+ }[] | undefined;
2410
+ development_stages?: {
2411
+ stage: string;
2412
+ validation?: string | undefined;
2413
+ product_state?: string | undefined;
2414
+ need?: string[] | undefined;
2415
+ learn?: string[] | undefined;
2416
+ cross_feature_value?: string | undefined;
2417
+ temporary_approach?: string | undefined;
2418
+ }[] | undefined;
2419
+ problem_statement?: string | undefined;
2420
+ primary_users?: string[] | undefined;
2421
+ };
2422
+ implementation: {
2423
+ tasks?: {
2424
+ id: string;
2425
+ action: string;
2426
+ keywords?: string[] | undefined;
2427
+ intent?: string | undefined;
2428
+ outcome?: {
2429
+ user_visible?: string | undefined;
2430
+ technical?: string[] | undefined;
2431
+ } | undefined;
2432
+ acceptance?: string[] | undefined;
2433
+ effort?: {
2434
+ estimated_minutes?: number | undefined;
2435
+ concepts_count?: number | undefined;
2436
+ files_touched?: number | undefined;
2437
+ } | undefined;
2438
+ requirement_ids?: string[] | undefined;
2439
+ depends_on?: string[] | undefined;
2440
+ capability_id?: string | undefined;
2441
+ modifies?: string[] | undefined;
2442
+ creates?: string[] | undefined;
2443
+ source_evidence?: string[] | undefined;
2444
+ concurrency?: string[] | undefined;
2445
+ }[] | undefined;
2446
+ };
2447
+ schema_version?: 3 | undefined;
2448
+ features?: {
2449
+ id: string;
2450
+ name: string;
2451
+ status?: "PLANNED" | "IMPLEMENTED" | "IN_PROGRESS" | undefined;
2452
+ description?: string | undefined;
2453
+ api_usage?: string[] | undefined;
2454
+ platform?: string | undefined;
2455
+ requirement_ids?: string[] | undefined;
2456
+ purpose?: string | undefined;
2457
+ priority?: "polish" | "core" | "supporting" | undefined;
2458
+ journey_ids?: string[] | undefined;
2459
+ depends_on?: string[] | undefined;
2460
+ steps?: {
2461
+ id: string;
2462
+ sequence: number;
2463
+ name: string;
2464
+ description?: string | undefined;
2465
+ files?: string[] | undefined;
2466
+ api_usage?: string[] | undefined;
2467
+ keywords?: string[] | undefined;
2468
+ completion_level?: "base" | "mvp" | "extend" | "polish" | undefined;
2469
+ platform?: string | undefined;
2470
+ intent?: string | undefined;
2471
+ outcome?: {
2472
+ user_visible?: string | undefined;
2473
+ technical?: string | string[] | undefined;
2474
+ } | undefined;
2475
+ acceptance?: string[] | undefined;
2476
+ effort?: {
2477
+ estimated_minutes?: number | undefined;
2478
+ complexity?: "low" | "medium" | "high" | undefined;
2479
+ concepts_count?: number | undefined;
2480
+ files_touched?: number | undefined;
2481
+ } | undefined;
2482
+ requirement_ids?: string[] | undefined;
2483
+ concept_codes?: string[] | undefined;
2484
+ }[] | undefined;
2485
+ }[] | undefined;
2486
+ capabilities?: {
2487
+ id: string;
2488
+ feature_id: string;
2489
+ purpose?: string | undefined;
2490
+ depends_on?: string[] | undefined;
2491
+ produces?: string[] | undefined;
2492
+ }[] | undefined;
2493
+ architecture_detail?: {
2494
+ confidence?: number | undefined;
2495
+ pattern?: string[] | undefined;
2496
+ evidence?: string[] | undefined;
2497
+ nodes?: {
2498
+ id: string;
2499
+ type?: string | undefined;
2500
+ depends_on?: string[] | undefined;
2501
+ custom_type?: string | undefined;
2502
+ layer?: string | undefined;
2503
+ responsibility?: string | undefined;
2504
+ used_by?: string[] | undefined;
2505
+ evidence_type?: string | undefined;
2506
+ confidence?: number | undefined;
2507
+ }[] | undefined;
2508
+ edges?: {
2509
+ from: string;
2510
+ to: string;
2511
+ type?: string | undefined;
2512
+ }[] | undefined;
2513
+ } | undefined;
2514
+ experience?: {
2515
+ components?: {
2516
+ id: string;
2517
+ type?: string | undefined;
2518
+ purpose?: string | undefined;
2519
+ inputs?: string[] | undefined;
2520
+ outputs?: string[] | undefined;
2521
+ state?: string[] | undefined;
2522
+ }[] | undefined;
2523
+ screens?: {
2524
+ id: string;
2525
+ name?: string | undefined;
2526
+ keywords?: string[] | undefined;
2527
+ purpose?: string | undefined;
2528
+ entry_point?: boolean | undefined;
2529
+ components?: string[] | undefined;
2530
+ states?: string[] | undefined;
2531
+ navigates_to?: string[] | undefined;
2532
+ }[] | undefined;
2533
+ ui_states?: {
2534
+ id: string;
2535
+ owner?: string | undefined;
2536
+ triggered_by?: string[] | undefined;
2537
+ transitions_to?: string[] | undefined;
2538
+ }[] | undefined;
2539
+ navigation?: {
2540
+ from: string;
2541
+ to: string;
2542
+ presentation?: string | undefined;
2543
+ trigger?: string | undefined;
2544
+ }[] | undefined;
2545
+ } | undefined;
2546
+ data_integration?: {
2547
+ data_flows?: any[] | undefined;
2548
+ models?: any[] | undefined;
2549
+ integrations?: any[] | undefined;
2550
+ persistence?: any[] | undefined;
2551
+ } | undefined;
2552
+ decomposition?: {
2553
+ milestones?: {
2554
+ id: string;
2555
+ name?: string | undefined;
2556
+ feature_ids?: string[] | undefined;
2557
+ phase?: string | undefined;
2558
+ goal?: string | undefined;
2559
+ }[] | undefined;
2560
+ } | undefined;
2561
+ missing_gaps?: {
2562
+ gap: string;
2563
+ location?: string | undefined;
2564
+ suggested_lo?: string | undefined;
2565
+ }[] | undefined;
2566
+ tech_debt?: {
2567
+ issue: string;
2568
+ location?: string | undefined;
2569
+ severity?: "low" | "medium" | "high" | undefined;
2570
+ }[] | undefined;
2571
+ }>;
2572
+ type ProjectGraph = z.infer<typeof ProjectGraphSchema>;
2573
+ type Product = z.infer<typeof ProductSchema>;
2574
+ type Capability = z.infer<typeof CapabilitySchema>;
2575
+ type ArchitectureDetail = z.infer<typeof ArchitectureDetailSchema>;
2576
+ type Experience = z.infer<typeof ExperienceSchema>;
2577
+ type DataIntegration = z.infer<typeof DataIntegrationSchema>;
2578
+ type Implementation = z.infer<typeof ImplementationSchema>;
2579
+ type Decomposition = z.infer<typeof DecompositionSchema>;
2580
+
2581
+ export { ArchNodeSchema as A, type Implementation as B, CapabilitySchema as C, DevelopmentStageSchema as D, ExperienceComponentSchema as E, FeatureSchema as F, type Decomposition as G, ImplementationSchema as I, JourneyStepSchema as J, MissingGapSchema as M, NavigationSchema as N, ProductGoalSchema as P, RequirementSchema as R, StepEffortSchema as S, TechStackSchema as T, UiStateSchema as U, StepOutcomeSchema as a, StepSchema as b, type Step as c, type Feature as d, JourneySchema as e, ProductUserSchema as f, ProductSchema as g, ProjectInfoSchema as h, ArchEdgeSchema as i, ArchitectureDetailSchema as j, ScreenSchema as k, ExperienceSchema as l, DataIntegrationSchema as m, TaskEffortSchema as n, TaskOutcomeSchema as o, TaskSchema as p, TechDebtSchema as q, MilestoneDecompositionSchema as r, DecompositionSchema as s, ProjectGraphSchema as t, type ProjectGraph as u, type Product as v, type Capability as w, type ArchitectureDetail as x, type Experience as y, type DataIntegration as z };