@alex.botez/elaborate 1.0.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 (162) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +114 -0
  3. package/dist/durable/index.d.ts +10 -0
  4. package/dist/durable/index.d.ts.map +1 -0
  5. package/dist/durable/index.js +9 -0
  6. package/dist/durable/index.js.map +1 -0
  7. package/dist/durable/workflow.d.ts +165 -0
  8. package/dist/durable/workflow.d.ts.map +1 -0
  9. package/dist/durable/workflow.js +224 -0
  10. package/dist/durable/workflow.js.map +1 -0
  11. package/dist/interview/classification.d.ts +16 -0
  12. package/dist/interview/classification.d.ts.map +1 -0
  13. package/dist/interview/classification.js +25 -0
  14. package/dist/interview/classification.js.map +1 -0
  15. package/dist/interview/composition.d.ts +12 -0
  16. package/dist/interview/composition.d.ts.map +1 -0
  17. package/dist/interview/composition.js +19 -0
  18. package/dist/interview/composition.js.map +1 -0
  19. package/dist/interview/describe.d.ts +41 -0
  20. package/dist/interview/describe.d.ts.map +1 -0
  21. package/dist/interview/describe.js +80 -0
  22. package/dist/interview/describe.js.map +1 -0
  23. package/dist/interview/deviation.d.ts +91 -0
  24. package/dist/interview/deviation.d.ts.map +1 -0
  25. package/dist/interview/deviation.js +137 -0
  26. package/dist/interview/deviation.js.map +1 -0
  27. package/dist/interview/extraction.d.ts +32 -0
  28. package/dist/interview/extraction.d.ts.map +1 -0
  29. package/dist/interview/extraction.js +102 -0
  30. package/dist/interview/extraction.js.map +1 -0
  31. package/dist/interview/index.d.ts +25 -0
  32. package/dist/interview/index.d.ts.map +1 -0
  33. package/dist/interview/index.js +22 -0
  34. package/dist/interview/index.js.map +1 -0
  35. package/dist/interview/macros.d.ts +91 -0
  36. package/dist/interview/macros.d.ts.map +1 -0
  37. package/dist/interview/macros.js +138 -0
  38. package/dist/interview/macros.js.map +1 -0
  39. package/dist/interview/preambles.d.ts +18 -0
  40. package/dist/interview/preambles.d.ts.map +1 -0
  41. package/dist/interview/preambles.js +93 -0
  42. package/dist/interview/preambles.js.map +1 -0
  43. package/dist/interview/progress.d.ts +31 -0
  44. package/dist/interview/progress.d.ts.map +1 -0
  45. package/dist/interview/progress.js +51 -0
  46. package/dist/interview/progress.js.map +1 -0
  47. package/dist/interview/prompt.d.ts +20 -0
  48. package/dist/interview/prompt.d.ts.map +1 -0
  49. package/dist/interview/prompt.js +58 -0
  50. package/dist/interview/prompt.js.map +1 -0
  51. package/dist/phases/aggregate/assumptions.d.ts +14 -0
  52. package/dist/phases/aggregate/assumptions.d.ts.map +1 -0
  53. package/dist/phases/aggregate/assumptions.js +33 -0
  54. package/dist/phases/aggregate/assumptions.js.map +1 -0
  55. package/dist/phases/aggregate/findings.d.ts +10 -0
  56. package/dist/phases/aggregate/findings.d.ts.map +1 -0
  57. package/dist/phases/aggregate/findings.js +20 -0
  58. package/dist/phases/aggregate/findings.js.map +1 -0
  59. package/dist/phases/aggregate/goals.d.ts +28 -0
  60. package/dist/phases/aggregate/goals.d.ts.map +1 -0
  61. package/dist/phases/aggregate/goals.js +74 -0
  62. package/dist/phases/aggregate/goals.js.map +1 -0
  63. package/dist/phases/aggregate/index.d.ts +128 -0
  64. package/dist/phases/aggregate/index.d.ts.map +1 -0
  65. package/dist/phases/aggregate/index.js +165 -0
  66. package/dist/phases/aggregate/index.js.map +1 -0
  67. package/dist/phases/aggregate/pam.d.ts +19 -0
  68. package/dist/phases/aggregate/pam.d.ts.map +1 -0
  69. package/dist/phases/aggregate/pam.js +37 -0
  70. package/dist/phases/aggregate/pam.js.map +1 -0
  71. package/dist/phases/aggregate/scope.d.ts +24 -0
  72. package/dist/phases/aggregate/scope.d.ts.map +1 -0
  73. package/dist/phases/aggregate/scope.js +67 -0
  74. package/dist/phases/aggregate/scope.js.map +1 -0
  75. package/dist/phases/aggregate/shared.d.ts +16 -0
  76. package/dist/phases/aggregate/shared.d.ts.map +1 -0
  77. package/dist/phases/aggregate/shared.js +26 -0
  78. package/dist/phases/aggregate/shared.js.map +1 -0
  79. package/dist/phases/aggregate/stakeholders.d.ts +27 -0
  80. package/dist/phases/aggregate/stakeholders.d.ts.map +1 -0
  81. package/dist/phases/aggregate/stakeholders.js +90 -0
  82. package/dist/phases/aggregate/stakeholders.js.map +1 -0
  83. package/dist/phases/aggregate/waitingRoom.d.ts +16 -0
  84. package/dist/phases/aggregate/waitingRoom.d.ts.map +1 -0
  85. package/dist/phases/aggregate/waitingRoom.js +32 -0
  86. package/dist/phases/aggregate/waitingRoom.js.map +1 -0
  87. package/dist/phases/assumptions.d.ts +19 -0
  88. package/dist/phases/assumptions.d.ts.map +1 -0
  89. package/dist/phases/assumptions.js +224 -0
  90. package/dist/phases/assumptions.js.map +1 -0
  91. package/dist/phases/configuration.d.ts +8 -0
  92. package/dist/phases/configuration.d.ts.map +1 -0
  93. package/dist/phases/configuration.js +14 -0
  94. package/dist/phases/configuration.js.map +1 -0
  95. package/dist/phases/goals.d.ts +15 -0
  96. package/dist/phases/goals.d.ts.map +1 -0
  97. package/dist/phases/goals.js +297 -0
  98. package/dist/phases/goals.js.map +1 -0
  99. package/dist/phases/index.d.ts +21 -0
  100. package/dist/phases/index.d.ts.map +1 -0
  101. package/dist/phases/index.js +56 -0
  102. package/dist/phases/index.js.map +1 -0
  103. package/dist/phases/opening.d.ts +12 -0
  104. package/dist/phases/opening.d.ts.map +1 -0
  105. package/dist/phases/opening.js +99 -0
  106. package/dist/phases/opening.js.map +1 -0
  107. package/dist/phases/purpose.d.ts +17 -0
  108. package/dist/phases/purpose.d.ts.map +1 -0
  109. package/dist/phases/purpose.js +207 -0
  110. package/dist/phases/purpose.js.map +1 -0
  111. package/dist/phases/schema.d.ts +861 -0
  112. package/dist/phases/schema.d.ts.map +1 -0
  113. package/dist/phases/schema.js +157 -0
  114. package/dist/phases/schema.js.map +1 -0
  115. package/dist/phases/scope.d.ts +18 -0
  116. package/dist/phases/scope.d.ts.map +1 -0
  117. package/dist/phases/scope.js +440 -0
  118. package/dist/phases/scope.js.map +1 -0
  119. package/dist/phases/session/archive.d.ts +19 -0
  120. package/dist/phases/session/archive.d.ts.map +1 -0
  121. package/dist/phases/session/archive.js +49 -0
  122. package/dist/phases/session/archive.js.map +1 -0
  123. package/dist/phases/session/file.d.ts +31 -0
  124. package/dist/phases/session/file.d.ts.map +1 -0
  125. package/dist/phases/session/file.js +113 -0
  126. package/dist/phases/session/file.js.map +1 -0
  127. package/dist/phases/session/index.d.ts +8 -0
  128. package/dist/phases/session/index.d.ts.map +1 -0
  129. package/dist/phases/session/index.js +8 -0
  130. package/dist/phases/session/index.js.map +1 -0
  131. package/dist/phases/session/persistence.d.ts +30 -0
  132. package/dist/phases/session/persistence.d.ts.map +1 -0
  133. package/dist/phases/session/persistence.js +91 -0
  134. package/dist/phases/session/persistence.js.map +1 -0
  135. package/dist/phases/shared.d.ts +64 -0
  136. package/dist/phases/shared.d.ts.map +1 -0
  137. package/dist/phases/shared.js +100 -0
  138. package/dist/phases/shared.js.map +1 -0
  139. package/dist/phases/stakeholders.d.ts +17 -0
  140. package/dist/phases/stakeholders.d.ts.map +1 -0
  141. package/dist/phases/stakeholders.js +370 -0
  142. package/dist/phases/stakeholders.js.map +1 -0
  143. package/dist/phases/validation.d.ts +13 -0
  144. package/dist/phases/validation.d.ts.map +1 -0
  145. package/dist/phases/validation.js +130 -0
  146. package/dist/phases/validation.js.map +1 -0
  147. package/dist/skill/adapter.d.ts +16 -0
  148. package/dist/skill/adapter.d.ts.map +1 -0
  149. package/dist/skill/adapter.js +278 -0
  150. package/dist/skill/adapter.js.map +1 -0
  151. package/dist/skill/index.d.ts +12 -0
  152. package/dist/skill/index.d.ts.map +1 -0
  153. package/dist/skill/index.js +11 -0
  154. package/dist/skill/index.js.map +1 -0
  155. package/dist/skill/log.d.ts +18 -0
  156. package/dist/skill/log.d.ts.map +1 -0
  157. package/dist/skill/log.js +53 -0
  158. package/dist/skill/log.js.map +1 -0
  159. package/package.json +83 -0
  160. package/skills/elaborate/SKILL.md +97 -0
  161. package/skills/elaborate/scripts/elaborate.cjs +589 -0
  162. package/skills/project-brief/SKILL.md +45 -0
@@ -0,0 +1,861 @@
1
+ /**
2
+ * MVP artifact schema using Zod
3
+ */
4
+ import { z } from "zod";
5
+ /** Provenance — which prompt surfaced this artifact */
6
+ export declare const SourceSchema: z.ZodObject<{
7
+ promptId: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ promptId: string;
10
+ }, {
11
+ promptId: string;
12
+ }>;
13
+ export type Source = z.infer<typeof SourceSchema>;
14
+ /** Goal status progression: fuzzy → elaborated → confirmed */
15
+ export declare const GoalStatus: z.ZodEnum<["fuzzy", "elaborated", "confirmed"]>;
16
+ export type GoalStatus = z.infer<typeof GoalStatus>;
17
+ /** Deterministic confidence from goal status */
18
+ export declare const GOAL_CONFIDENCE: Record<GoalStatus, number>;
19
+ /** In-scope item — no status progression, boundary decisions are binary */
20
+ export declare const InScopeItemSchema: z.ZodObject<{
21
+ id: z.ZodString;
22
+ description: z.ZodString;
23
+ relatedGoals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
24
+ confidence: z.ZodNumber;
25
+ source: z.ZodOptional<z.ZodObject<{
26
+ promptId: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ promptId: string;
29
+ }, {
30
+ promptId: string;
31
+ }>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ description: string;
34
+ id: string;
35
+ relatedGoals: string[];
36
+ confidence: number;
37
+ source?: {
38
+ promptId: string;
39
+ } | undefined;
40
+ }, {
41
+ description: string;
42
+ id: string;
43
+ confidence: number;
44
+ relatedGoals?: string[] | undefined;
45
+ source?: {
46
+ promptId: string;
47
+ } | undefined;
48
+ }>;
49
+ export type InScopeItem = z.infer<typeof InScopeItemSchema>;
50
+ /** Out-of-scope item */
51
+ export declare const OutOfScopeItemSchema: z.ZodObject<{
52
+ id: z.ZodString;
53
+ description: z.ZodString;
54
+ reason: z.ZodDefault<z.ZodString>;
55
+ relatedGoals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
56
+ confidence: z.ZodNumber;
57
+ source: z.ZodOptional<z.ZodObject<{
58
+ promptId: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ promptId: string;
61
+ }, {
62
+ promptId: string;
63
+ }>>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ description: string;
66
+ id: string;
67
+ relatedGoals: string[];
68
+ confidence: number;
69
+ reason: string;
70
+ source?: {
71
+ promptId: string;
72
+ } | undefined;
73
+ }, {
74
+ description: string;
75
+ id: string;
76
+ confidence: number;
77
+ relatedGoals?: string[] | undefined;
78
+ source?: {
79
+ promptId: string;
80
+ } | undefined;
81
+ reason?: string | undefined;
82
+ }>;
83
+ export type OutOfScopeItem = z.infer<typeof OutOfScopeItemSchema>;
84
+ /** Constraint — external non-negotiable reality */
85
+ export declare const ConstraintSchema: z.ZodObject<{
86
+ id: z.ZodString;
87
+ description: z.ZodString;
88
+ source: z.ZodOptional<z.ZodObject<{
89
+ promptId: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ promptId: string;
92
+ }, {
93
+ promptId: string;
94
+ }>>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ description: string;
97
+ id: string;
98
+ source?: {
99
+ promptId: string;
100
+ } | undefined;
101
+ }, {
102
+ description: string;
103
+ id: string;
104
+ source?: {
105
+ promptId: string;
106
+ } | undefined;
107
+ }>;
108
+ export type Constraint = z.infer<typeof ConstraintSchema>;
109
+ /** Stakeholder type */
110
+ export declare const StakeholderType: z.ZodEnum<["primary", "secondary", "external"]>;
111
+ export type StakeholderType = z.infer<typeof StakeholderType>;
112
+ /** Stakeholder status progression: identified → elaborated → confirmed */
113
+ export declare const StakeholderStatus: z.ZodEnum<["identified", "elaborated", "confirmed"]>;
114
+ export type StakeholderStatus = z.infer<typeof StakeholderStatus>;
115
+ /** Deterministic confidence from stakeholder status */
116
+ export declare const STAKEHOLDER_CONFIDENCE: Record<StakeholderStatus, number>;
117
+ /** Purpose statement with confidence */
118
+ export declare const PurposeSchema: z.ZodObject<{
119
+ statement: z.ZodString;
120
+ confidence: z.ZodNumber;
121
+ source: z.ZodOptional<z.ZodObject<{
122
+ promptId: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ promptId: string;
125
+ }, {
126
+ promptId: string;
127
+ }>>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ confidence: number;
130
+ statement: string;
131
+ source?: {
132
+ promptId: string;
133
+ } | undefined;
134
+ }, {
135
+ confidence: number;
136
+ statement: string;
137
+ source?: {
138
+ promptId: string;
139
+ } | undefined;
140
+ }>;
141
+ export type Purpose = z.infer<typeof PurposeSchema>;
142
+ /** Goal */
143
+ export declare const GoalSchema: z.ZodObject<{
144
+ id: z.ZodString;
145
+ title: z.ZodString;
146
+ description: z.ZodString;
147
+ rationale: z.ZodOptional<z.ZodString>;
148
+ status: z.ZodEnum<["fuzzy", "elaborated", "confirmed"]>;
149
+ confidence: z.ZodNumber;
150
+ source: z.ZodOptional<z.ZodObject<{
151
+ promptId: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ promptId: string;
154
+ }, {
155
+ promptId: string;
156
+ }>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ status: "fuzzy" | "elaborated" | "confirmed";
159
+ description: string;
160
+ id: string;
161
+ confidence: number;
162
+ title: string;
163
+ source?: {
164
+ promptId: string;
165
+ } | undefined;
166
+ rationale?: string | undefined;
167
+ }, {
168
+ status: "fuzzy" | "elaborated" | "confirmed";
169
+ description: string;
170
+ id: string;
171
+ confidence: number;
172
+ title: string;
173
+ source?: {
174
+ promptId: string;
175
+ } | undefined;
176
+ rationale?: string | undefined;
177
+ }>;
178
+ export type Goal = z.infer<typeof GoalSchema>;
179
+ /** Stakeholder */
180
+ export declare const StakeholderSchema: z.ZodObject<{
181
+ id: z.ZodString;
182
+ name: z.ZodString;
183
+ type: z.ZodEnum<["primary", "secondary", "external"]>;
184
+ role: z.ZodDefault<z.ZodString>;
185
+ concerns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
186
+ isRespondent: z.ZodDefault<z.ZodBoolean>;
187
+ status: z.ZodDefault<z.ZodEnum<["identified", "elaborated", "confirmed"]>>;
188
+ confidence: z.ZodDefault<z.ZodNumber>;
189
+ source: z.ZodOptional<z.ZodObject<{
190
+ promptId: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ promptId: string;
193
+ }, {
194
+ promptId: string;
195
+ }>>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ status: "elaborated" | "confirmed" | "identified";
198
+ type: "primary" | "secondary" | "external";
199
+ id: string;
200
+ confidence: number;
201
+ name: string;
202
+ role: string;
203
+ concerns: string[];
204
+ isRespondent: boolean;
205
+ source?: {
206
+ promptId: string;
207
+ } | undefined;
208
+ }, {
209
+ type: "primary" | "secondary" | "external";
210
+ id: string;
211
+ name: string;
212
+ status?: "elaborated" | "confirmed" | "identified" | undefined;
213
+ confidence?: number | undefined;
214
+ source?: {
215
+ promptId: string;
216
+ } | undefined;
217
+ role?: string | undefined;
218
+ concerns?: string[] | undefined;
219
+ isRespondent?: boolean | undefined;
220
+ }>;
221
+ export type Stakeholder = z.infer<typeof StakeholderSchema>;
222
+ /** Advantage statement with confidence */
223
+ export declare const AdvantageSchema: z.ZodObject<{
224
+ statement: z.ZodString;
225
+ confidence: z.ZodNumber;
226
+ source: z.ZodOptional<z.ZodObject<{
227
+ promptId: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ promptId: string;
230
+ }, {
231
+ promptId: string;
232
+ }>>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ confidence: number;
235
+ statement: string;
236
+ source?: {
237
+ promptId: string;
238
+ } | undefined;
239
+ }, {
240
+ confidence: number;
241
+ statement: string;
242
+ source?: {
243
+ promptId: string;
244
+ } | undefined;
245
+ }>;
246
+ export type Advantage = z.infer<typeof AdvantageSchema>;
247
+ /** Measurement criteria with confidence */
248
+ export declare const MeasurementSchema: z.ZodObject<{
249
+ statement: z.ZodString;
250
+ confidence: z.ZodNumber;
251
+ source: z.ZodOptional<z.ZodObject<{
252
+ promptId: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ promptId: string;
255
+ }, {
256
+ promptId: string;
257
+ }>>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ confidence: number;
260
+ statement: string;
261
+ source?: {
262
+ promptId: string;
263
+ } | undefined;
264
+ }, {
265
+ confidence: number;
266
+ statement: string;
267
+ source?: {
268
+ promptId: string;
269
+ } | undefined;
270
+ }>;
271
+ export type Measurement = z.infer<typeof MeasurementSchema>;
272
+ /** Assumption status: no progression — binary validation with explicit "can't verify" */
273
+ export declare const AssumptionStatus: z.ZodEnum<["unvalidated", "validated", "flagged"]>;
274
+ export type AssumptionStatus = z.infer<typeof AssumptionStatus>;
275
+ /** Deterministic confidence from assumption status */
276
+ export declare const ASSUMPTION_CONFIDENCE: Record<AssumptionStatus, number>;
277
+ export declare const AssumptionType: z.ZodEnum<["hypothesis", "invariant"]>;
278
+ export type AssumptionType = z.infer<typeof AssumptionType>;
279
+ /** Assumption — believed-but-unverified domain property (KAOS) */
280
+ export declare const AssumptionSchema: z.ZodObject<{
281
+ id: z.ZodString;
282
+ statement: z.ZodString;
283
+ type: z.ZodEnum<["hypothesis", "invariant"]>;
284
+ status: z.ZodDefault<z.ZodEnum<["unvalidated", "validated", "flagged"]>>;
285
+ relatedGoals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
286
+ confidence: z.ZodNumber;
287
+ source: z.ZodOptional<z.ZodObject<{
288
+ promptId: z.ZodString;
289
+ }, "strip", z.ZodTypeAny, {
290
+ promptId: string;
291
+ }, {
292
+ promptId: string;
293
+ }>>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ status: "unvalidated" | "validated" | "flagged";
296
+ type: "hypothesis" | "invariant";
297
+ id: string;
298
+ relatedGoals: string[];
299
+ confidence: number;
300
+ statement: string;
301
+ source?: {
302
+ promptId: string;
303
+ } | undefined;
304
+ }, {
305
+ type: "hypothesis" | "invariant";
306
+ id: string;
307
+ confidence: number;
308
+ statement: string;
309
+ status?: "unvalidated" | "validated" | "flagged" | undefined;
310
+ relatedGoals?: string[] | undefined;
311
+ source?: {
312
+ promptId: string;
313
+ } | undefined;
314
+ }>;
315
+ export type Assumption = z.infer<typeof AssumptionSchema>;
316
+ /** Waiting room item */
317
+ export declare const WaitingItemSchema: z.ZodObject<{
318
+ id: z.ZodString;
319
+ content: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ id: string;
322
+ content: string;
323
+ }, {
324
+ id: string;
325
+ content: string;
326
+ }>;
327
+ export type WaitingItem = z.infer<typeof WaitingItemSchema>;
328
+ /** A finding — gap or observation captured during the session */
329
+ export declare const FindingSchema: z.ZodObject<{
330
+ id: z.ZodString;
331
+ content: z.ZodString;
332
+ phase: z.ZodString;
333
+ }, "strip", z.ZodTypeAny, {
334
+ id: string;
335
+ content: string;
336
+ phase: string;
337
+ }, {
338
+ id: string;
339
+ content: string;
340
+ phase: string;
341
+ }>;
342
+ export type Finding = z.infer<typeof FindingSchema>;
343
+ /** Residual item — WR content that survived classify-and-route in validation */
344
+ export declare const ResidualItemSchema: z.ZodObject<{
345
+ id: z.ZodString;
346
+ content: z.ZodString;
347
+ reason: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ id: string;
350
+ reason: string;
351
+ content: string;
352
+ }, {
353
+ id: string;
354
+ reason: string;
355
+ content: string;
356
+ }>;
357
+ export type ResidualItem = z.infer<typeof ResidualItemSchema>;
358
+ /** Complete artifacts structure (MVP) */
359
+ export declare const ArtifactsSchema: z.ZodObject<{
360
+ purpose: z.ZodOptional<z.ZodObject<{
361
+ statement: z.ZodString;
362
+ confidence: z.ZodNumber;
363
+ source: z.ZodOptional<z.ZodObject<{
364
+ promptId: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ promptId: string;
367
+ }, {
368
+ promptId: string;
369
+ }>>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ confidence: number;
372
+ statement: string;
373
+ source?: {
374
+ promptId: string;
375
+ } | undefined;
376
+ }, {
377
+ confidence: number;
378
+ statement: string;
379
+ source?: {
380
+ promptId: string;
381
+ } | undefined;
382
+ }>>;
383
+ advantage: z.ZodOptional<z.ZodObject<{
384
+ statement: z.ZodString;
385
+ confidence: z.ZodNumber;
386
+ source: z.ZodOptional<z.ZodObject<{
387
+ promptId: z.ZodString;
388
+ }, "strip", z.ZodTypeAny, {
389
+ promptId: string;
390
+ }, {
391
+ promptId: string;
392
+ }>>;
393
+ }, "strip", z.ZodTypeAny, {
394
+ confidence: number;
395
+ statement: string;
396
+ source?: {
397
+ promptId: string;
398
+ } | undefined;
399
+ }, {
400
+ confidence: number;
401
+ statement: string;
402
+ source?: {
403
+ promptId: string;
404
+ } | undefined;
405
+ }>>;
406
+ measurement: z.ZodOptional<z.ZodObject<{
407
+ statement: z.ZodString;
408
+ confidence: z.ZodNumber;
409
+ source: z.ZodOptional<z.ZodObject<{
410
+ promptId: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ promptId: string;
413
+ }, {
414
+ promptId: string;
415
+ }>>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ confidence: number;
418
+ statement: string;
419
+ source?: {
420
+ promptId: string;
421
+ } | undefined;
422
+ }, {
423
+ confidence: number;
424
+ statement: string;
425
+ source?: {
426
+ promptId: string;
427
+ } | undefined;
428
+ }>>;
429
+ goals: z.ZodDefault<z.ZodArray<z.ZodObject<{
430
+ id: z.ZodString;
431
+ title: z.ZodString;
432
+ description: z.ZodString;
433
+ rationale: z.ZodOptional<z.ZodString>;
434
+ status: z.ZodEnum<["fuzzy", "elaborated", "confirmed"]>;
435
+ confidence: z.ZodNumber;
436
+ source: z.ZodOptional<z.ZodObject<{
437
+ promptId: z.ZodString;
438
+ }, "strip", z.ZodTypeAny, {
439
+ promptId: string;
440
+ }, {
441
+ promptId: string;
442
+ }>>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ status: "fuzzy" | "elaborated" | "confirmed";
445
+ description: string;
446
+ id: string;
447
+ confidence: number;
448
+ title: string;
449
+ source?: {
450
+ promptId: string;
451
+ } | undefined;
452
+ rationale?: string | undefined;
453
+ }, {
454
+ status: "fuzzy" | "elaborated" | "confirmed";
455
+ description: string;
456
+ id: string;
457
+ confidence: number;
458
+ title: string;
459
+ source?: {
460
+ promptId: string;
461
+ } | undefined;
462
+ rationale?: string | undefined;
463
+ }>, "many">>;
464
+ stakeholders: z.ZodDefault<z.ZodArray<z.ZodObject<{
465
+ id: z.ZodString;
466
+ name: z.ZodString;
467
+ type: z.ZodEnum<["primary", "secondary", "external"]>;
468
+ role: z.ZodDefault<z.ZodString>;
469
+ concerns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
470
+ isRespondent: z.ZodDefault<z.ZodBoolean>;
471
+ status: z.ZodDefault<z.ZodEnum<["identified", "elaborated", "confirmed"]>>;
472
+ confidence: z.ZodDefault<z.ZodNumber>;
473
+ source: z.ZodOptional<z.ZodObject<{
474
+ promptId: z.ZodString;
475
+ }, "strip", z.ZodTypeAny, {
476
+ promptId: string;
477
+ }, {
478
+ promptId: string;
479
+ }>>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ status: "elaborated" | "confirmed" | "identified";
482
+ type: "primary" | "secondary" | "external";
483
+ id: string;
484
+ confidence: number;
485
+ name: string;
486
+ role: string;
487
+ concerns: string[];
488
+ isRespondent: boolean;
489
+ source?: {
490
+ promptId: string;
491
+ } | undefined;
492
+ }, {
493
+ type: "primary" | "secondary" | "external";
494
+ id: string;
495
+ name: string;
496
+ status?: "elaborated" | "confirmed" | "identified" | undefined;
497
+ confidence?: number | undefined;
498
+ source?: {
499
+ promptId: string;
500
+ } | undefined;
501
+ role?: string | undefined;
502
+ concerns?: string[] | undefined;
503
+ isRespondent?: boolean | undefined;
504
+ }>, "many">>;
505
+ inScope: z.ZodDefault<z.ZodArray<z.ZodObject<{
506
+ id: z.ZodString;
507
+ description: z.ZodString;
508
+ relatedGoals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
509
+ confidence: z.ZodNumber;
510
+ source: z.ZodOptional<z.ZodObject<{
511
+ promptId: z.ZodString;
512
+ }, "strip", z.ZodTypeAny, {
513
+ promptId: string;
514
+ }, {
515
+ promptId: string;
516
+ }>>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ description: string;
519
+ id: string;
520
+ relatedGoals: string[];
521
+ confidence: number;
522
+ source?: {
523
+ promptId: string;
524
+ } | undefined;
525
+ }, {
526
+ description: string;
527
+ id: string;
528
+ confidence: number;
529
+ relatedGoals?: string[] | undefined;
530
+ source?: {
531
+ promptId: string;
532
+ } | undefined;
533
+ }>, "many">>;
534
+ outOfScope: z.ZodDefault<z.ZodArray<z.ZodObject<{
535
+ id: z.ZodString;
536
+ description: z.ZodString;
537
+ reason: z.ZodDefault<z.ZodString>;
538
+ relatedGoals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
539
+ confidence: z.ZodNumber;
540
+ source: z.ZodOptional<z.ZodObject<{
541
+ promptId: z.ZodString;
542
+ }, "strip", z.ZodTypeAny, {
543
+ promptId: string;
544
+ }, {
545
+ promptId: string;
546
+ }>>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ description: string;
549
+ id: string;
550
+ relatedGoals: string[];
551
+ confidence: number;
552
+ reason: string;
553
+ source?: {
554
+ promptId: string;
555
+ } | undefined;
556
+ }, {
557
+ description: string;
558
+ id: string;
559
+ confidence: number;
560
+ relatedGoals?: string[] | undefined;
561
+ source?: {
562
+ promptId: string;
563
+ } | undefined;
564
+ reason?: string | undefined;
565
+ }>, "many">>;
566
+ constraints: z.ZodDefault<z.ZodArray<z.ZodObject<{
567
+ id: z.ZodString;
568
+ description: z.ZodString;
569
+ source: z.ZodOptional<z.ZodObject<{
570
+ promptId: z.ZodString;
571
+ }, "strip", z.ZodTypeAny, {
572
+ promptId: string;
573
+ }, {
574
+ promptId: string;
575
+ }>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ description: string;
578
+ id: string;
579
+ source?: {
580
+ promptId: string;
581
+ } | undefined;
582
+ }, {
583
+ description: string;
584
+ id: string;
585
+ source?: {
586
+ promptId: string;
587
+ } | undefined;
588
+ }>, "many">>;
589
+ assumptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
590
+ id: z.ZodString;
591
+ statement: z.ZodString;
592
+ type: z.ZodEnum<["hypothesis", "invariant"]>;
593
+ status: z.ZodDefault<z.ZodEnum<["unvalidated", "validated", "flagged"]>>;
594
+ relatedGoals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
595
+ confidence: z.ZodNumber;
596
+ source: z.ZodOptional<z.ZodObject<{
597
+ promptId: z.ZodString;
598
+ }, "strip", z.ZodTypeAny, {
599
+ promptId: string;
600
+ }, {
601
+ promptId: string;
602
+ }>>;
603
+ }, "strip", z.ZodTypeAny, {
604
+ status: "unvalidated" | "validated" | "flagged";
605
+ type: "hypothesis" | "invariant";
606
+ id: string;
607
+ relatedGoals: string[];
608
+ confidence: number;
609
+ statement: string;
610
+ source?: {
611
+ promptId: string;
612
+ } | undefined;
613
+ }, {
614
+ type: "hypothesis" | "invariant";
615
+ id: string;
616
+ confidence: number;
617
+ statement: string;
618
+ status?: "unvalidated" | "validated" | "flagged" | undefined;
619
+ relatedGoals?: string[] | undefined;
620
+ source?: {
621
+ promptId: string;
622
+ } | undefined;
623
+ }>, "many">>;
624
+ domainHints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
625
+ waitingRoom: z.ZodDefault<z.ZodArray<z.ZodObject<{
626
+ id: z.ZodString;
627
+ content: z.ZodString;
628
+ }, "strip", z.ZodTypeAny, {
629
+ id: string;
630
+ content: string;
631
+ }, {
632
+ id: string;
633
+ content: string;
634
+ }>, "many">>;
635
+ findings: z.ZodDefault<z.ZodArray<z.ZodObject<{
636
+ id: z.ZodString;
637
+ content: z.ZodString;
638
+ phase: z.ZodString;
639
+ }, "strip", z.ZodTypeAny, {
640
+ id: string;
641
+ content: string;
642
+ phase: string;
643
+ }, {
644
+ id: string;
645
+ content: string;
646
+ phase: string;
647
+ }>, "many">>;
648
+ residual: z.ZodDefault<z.ZodArray<z.ZodObject<{
649
+ id: z.ZodString;
650
+ content: z.ZodString;
651
+ reason: z.ZodString;
652
+ }, "strip", z.ZodTypeAny, {
653
+ id: string;
654
+ reason: string;
655
+ content: string;
656
+ }, {
657
+ id: string;
658
+ reason: string;
659
+ content: string;
660
+ }>, "many">>;
661
+ }, "strip", z.ZodTypeAny, {
662
+ goals: {
663
+ status: "fuzzy" | "elaborated" | "confirmed";
664
+ description: string;
665
+ id: string;
666
+ confidence: number;
667
+ title: string;
668
+ source?: {
669
+ promptId: string;
670
+ } | undefined;
671
+ rationale?: string | undefined;
672
+ }[];
673
+ stakeholders: {
674
+ status: "elaborated" | "confirmed" | "identified";
675
+ type: "primary" | "secondary" | "external";
676
+ id: string;
677
+ confidence: number;
678
+ name: string;
679
+ role: string;
680
+ concerns: string[];
681
+ isRespondent: boolean;
682
+ source?: {
683
+ promptId: string;
684
+ } | undefined;
685
+ }[];
686
+ assumptions: {
687
+ status: "unvalidated" | "validated" | "flagged";
688
+ type: "hypothesis" | "invariant";
689
+ id: string;
690
+ relatedGoals: string[];
691
+ confidence: number;
692
+ statement: string;
693
+ source?: {
694
+ promptId: string;
695
+ } | undefined;
696
+ }[];
697
+ inScope: {
698
+ description: string;
699
+ id: string;
700
+ relatedGoals: string[];
701
+ confidence: number;
702
+ source?: {
703
+ promptId: string;
704
+ } | undefined;
705
+ }[];
706
+ outOfScope: {
707
+ description: string;
708
+ id: string;
709
+ relatedGoals: string[];
710
+ confidence: number;
711
+ reason: string;
712
+ source?: {
713
+ promptId: string;
714
+ } | undefined;
715
+ }[];
716
+ constraints: {
717
+ description: string;
718
+ id: string;
719
+ source?: {
720
+ promptId: string;
721
+ } | undefined;
722
+ }[];
723
+ domainHints: string[];
724
+ waitingRoom: {
725
+ id: string;
726
+ content: string;
727
+ }[];
728
+ findings: {
729
+ id: string;
730
+ content: string;
731
+ phase: string;
732
+ }[];
733
+ residual: {
734
+ id: string;
735
+ reason: string;
736
+ content: string;
737
+ }[];
738
+ purpose?: {
739
+ confidence: number;
740
+ statement: string;
741
+ source?: {
742
+ promptId: string;
743
+ } | undefined;
744
+ } | undefined;
745
+ advantage?: {
746
+ confidence: number;
747
+ statement: string;
748
+ source?: {
749
+ promptId: string;
750
+ } | undefined;
751
+ } | undefined;
752
+ measurement?: {
753
+ confidence: number;
754
+ statement: string;
755
+ source?: {
756
+ promptId: string;
757
+ } | undefined;
758
+ } | undefined;
759
+ }, {
760
+ purpose?: {
761
+ confidence: number;
762
+ statement: string;
763
+ source?: {
764
+ promptId: string;
765
+ } | undefined;
766
+ } | undefined;
767
+ goals?: {
768
+ status: "fuzzy" | "elaborated" | "confirmed";
769
+ description: string;
770
+ id: string;
771
+ confidence: number;
772
+ title: string;
773
+ source?: {
774
+ promptId: string;
775
+ } | undefined;
776
+ rationale?: string | undefined;
777
+ }[] | undefined;
778
+ stakeholders?: {
779
+ type: "primary" | "secondary" | "external";
780
+ id: string;
781
+ name: string;
782
+ status?: "elaborated" | "confirmed" | "identified" | undefined;
783
+ confidence?: number | undefined;
784
+ source?: {
785
+ promptId: string;
786
+ } | undefined;
787
+ role?: string | undefined;
788
+ concerns?: string[] | undefined;
789
+ isRespondent?: boolean | undefined;
790
+ }[] | undefined;
791
+ assumptions?: {
792
+ type: "hypothesis" | "invariant";
793
+ id: string;
794
+ confidence: number;
795
+ statement: string;
796
+ status?: "unvalidated" | "validated" | "flagged" | undefined;
797
+ relatedGoals?: string[] | undefined;
798
+ source?: {
799
+ promptId: string;
800
+ } | undefined;
801
+ }[] | undefined;
802
+ advantage?: {
803
+ confidence: number;
804
+ statement: string;
805
+ source?: {
806
+ promptId: string;
807
+ } | undefined;
808
+ } | undefined;
809
+ measurement?: {
810
+ confidence: number;
811
+ statement: string;
812
+ source?: {
813
+ promptId: string;
814
+ } | undefined;
815
+ } | undefined;
816
+ inScope?: {
817
+ description: string;
818
+ id: string;
819
+ confidence: number;
820
+ relatedGoals?: string[] | undefined;
821
+ source?: {
822
+ promptId: string;
823
+ } | undefined;
824
+ }[] | undefined;
825
+ outOfScope?: {
826
+ description: string;
827
+ id: string;
828
+ confidence: number;
829
+ relatedGoals?: string[] | undefined;
830
+ source?: {
831
+ promptId: string;
832
+ } | undefined;
833
+ reason?: string | undefined;
834
+ }[] | undefined;
835
+ constraints?: {
836
+ description: string;
837
+ id: string;
838
+ source?: {
839
+ promptId: string;
840
+ } | undefined;
841
+ }[] | undefined;
842
+ domainHints?: string[] | undefined;
843
+ waitingRoom?: {
844
+ id: string;
845
+ content: string;
846
+ }[] | undefined;
847
+ findings?: {
848
+ id: string;
849
+ content: string;
850
+ phase: string;
851
+ }[] | undefined;
852
+ residual?: {
853
+ id: string;
854
+ reason: string;
855
+ content: string;
856
+ }[] | undefined;
857
+ }>;
858
+ export type Artifacts = z.infer<typeof ArtifactsSchema>;
859
+ /** Create empty artifacts structure */
860
+ export declare function createEmptyArtifacts(): Artifacts;
861
+ //# sourceMappingURL=schema.d.ts.map